Класс PasswordContextMixin (Django 1.11)

from django.contrib.auth.views import PasswordContextMixin

Атрибуты

  Определено в
extra_context = None PasswordContextMixin

Методы

def get_context_data(self, **kwargs):
    context = super(PasswordContextMixin, self).get_context_data(**kwargs)
    context['title'] = self.title
    if self.extra_context is not None:
        context.update(self.extra_context)
    return context