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

Method get_context_data

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

Source from the content-addressed store, hash-verified

159 return self.request.path
160
161 def get_context_data(self, **kwargs):
162 context = super().get_context_data(**kwargs)
163 current_site = get_current_site(self.request)
164 context.update(
165 {
166 "site": current_site,
167 "site_name": current_site.name,
168 "title": _("Logged out"),
169 "subtitle": None,
170 **(self.extra_context or {}),
171 }
172 )
173 return context
174
175
176def logout_then_login(request, login_url=None):

Callers

nothing calls this directly

Calls 3

get_current_siteFunction · 0.90
get_context_dataMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected