viewhelpers.generic — Generic views¶
-
class
StandaloneBaseTemplateView(**kwargs)¶ Bases:
django.views.generic.base.TemplateView,django_cradmin.viewhelpers.mixins.CommonCradminViewMixin,django_cradmin.javascriptregistry.viewmixin.StandaloneBaseViewMixinBase template view that you should use instead of
django.views.generic.TemplateViewif you extend thedjango_cradmin/standalone-base.django.htmltemplate.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.WithinRoleViewMixinBase template view that you should use instead of
django.views.generic.TemplateViewif you extend thedjango_cradmin/base.django.htmltemplate.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.