MCPcopy
hub / github.com/django/django / get_context_data

Method get_context_data

django/contrib/auth/views.py:328–340  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

326 return super().form_valid(form)
327
328 def get_context_data(self, **kwargs):
329 context = super().get_context_data(**kwargs)
330 if self.validlink:
331 context["validlink"] = True
332 else:
333 context.update(
334 {
335 "form": None,
336 "title": _("Password reset unsuccessful"),
337 "validlink": False,
338 }
339 )
340 return context
341
342
343@method_decorator(login_not_required, name="dispatch")

Callers 1

dispatchMethod · 0.95

Calls 2

get_context_dataMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected