Model mixin¶
- class djcrud.model.ModelMixin[source]¶
Bases:
objectResolve
modeland scoped querysets from the enclosing router.Views nested under a
ModelRouterinherit itsmodelandget_queryset()scoping.You can also declare
model = MyModeldirectly on a ListView (or subclass) to support patterns such as workspace sections, sharing tabs, or invitations lists mounted under a plaindjcrud.Router(instead of a ModelRouter). The effective model is then used for both templates and queryset/permission registry lookups.- property title¶
Human-readable label with the model class name removed.
- property codename¶
URL segment with the model name removed from the default codename.
- property model¶
Django model from the nearest ancestor
ModelRouter.
- property model_meta¶
model._metaexposed for templates (._metais blocked).