viewhelpers.generic — Generic views¶
-
class
StandaloneBaseTemplateView
(**kwargs)¶ Bases:
django.views.generic.base.TemplateView
,django_cradmin.viewhelpers.mixins.CommonCradminViewMixin
,django_cradmin.javascriptregistry.viewmixin.StandaloneBaseViewMixin
Base template view that you should use instead of
django.views.generic.TemplateView
if you extend thedjango_cradmin/standalone-base.django.html
template.Note
You should import this class with
from django_cradmin import viewhelpers
, and refer to it usingviewhelpers.generic.StandaloneBaseTemplateView
.Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
class
WithinRoleTemplateView
(**kwargs)¶ Bases:
django.views.generic.base.TemplateView
,django_cradmin.viewhelpers.mixins.CommonCradminViewMixin
,django_cradmin.javascriptregistry.viewmixin.WithinRoleViewMixin
Base template view that you should use instead of
django.views.generic.TemplateView
if you extend thedjango_cradmin/base.django.html
template.Note
You should import this class with
from django_cradmin import viewhelpers
, and refer to it usingviewhelpers.generic.WithinRoleTemplateView
.Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.