Router¶
- class djcrud.router.Router[source]¶
-
Group child routes under a shared URL prefix.
- routes¶
Declared child routes (classes or instances). Before
build(), this is the declaration list; afterward it is aRegistryof built route instances.
- icon¶
Bootstrap Icons name for the sidebar entry. Navigation list views inherit this when they do not set their own
icon.- Type:
- property codename¶
URL segment with the
routersuffix removed from the class name.
- property model_router¶
Nearest ancestor
ModelRouter, orNone.
- has_permission(*, user, model, action, perm, obj=None)[source]¶
Delegate permission checks to the nearest
ModelRouter.
- get_queryset(*, user, model, action, perm, obj=None)[source]¶
Delegate queryset scoping to the nearest
ModelRouter.
- property root¶
Topmost router ancestor.
- property urlpatterns¶
Include child
urlpatternsunder this prefix.