Класс PasswordContextMixin (Django 2.1)

from django.contrib.auth.views import PasswordContextMixin

Attributes

  Defined in
extra_context = None PasswordContextMixin

Methods

def get_context_data(self, **kwargs):
    context = super().get_context_data(**kwargs)
    context.update({
        'title': self.title,
        **(self.extra_context or {})
    })
    return context