class ContextMixin
from django.views.generic.base import ContextMixin
A default context mixin that passes the keyword arguments received by get_context_data as the template context.
Descendants
- ArchiveIndexView
- BaseArchiveIndexView
- BaseCreateView
- BaseDateDetailView
- BaseDateListView
- BaseDayArchiveView
- BaseDeleteView
- BaseDetailView
- BaseFormView
- BaseListView
- BaseMonthArchiveView
- BaseTodayArchiveView
- BaseUpdateView
- BaseWeekArchiveView
- BaseYearArchiveView
- CreateView
- DateDetailView
- DayArchiveView
- DeleteView
- DetailView
- FormMixin
- FormView
- ListView
- ModelFormMixin
- ModelFormMixin
- MonthArchiveView
- MultipleObjectMixin
- SingleObjectMixin
- TemplateView
- TodayArchiveView
- UpdateView
- WeekArchiveView
- YearArchiveView
Methods
def
get_context_data(self, **kwargs):
ContextMixin
¶
def
get_context_data(self, **kwargs):
ContextMixin
¶
22 23 24 25 | def get_context_data(self, **kwargs):
if 'view' not in kwargs:
kwargs['view'] = self
return kwargs
|