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

Method get_context_data

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

Source from the content-addressed store, hash-verified

117 return HttpResponseRedirect(self.get_success_url())
118
119 def get_context_data(self, **kwargs):
120 context = super().get_context_data(**kwargs)
121 current_site = get_current_site(self.request)
122 context.update(
123 {
124 self.redirect_field_name: self.get_redirect_url(),
125 "site": current_site,
126 "site_name": current_site.name,
127 **(self.extra_context or {}),
128 }
129 )
130 return context
131
132
133@method_decorator([csrf_protect, never_cache], name="dispatch")

Callers 4

get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45

Calls 3

get_current_siteFunction · 0.90
updateMethod · 0.45
get_redirect_urlMethod · 0.45

Tested by

no test coverage detected