MCPcopy
hub / github.com/django/django / i18n_javascript

Method i18n_javascript

django/contrib/admin/sites.py:383–390  ·  view source on GitHub ↗

Display the i18n JavaScript that the Django admin requires. `extra_context` is unused but present for consistency with the other admin views.

(self, request, extra_context=None)

Source from the content-addressed store, hash-verified

381 return PasswordChangeDoneView.as_view(**defaults)(request)
382
383 def i18n_javascript(self, request, extra_context=None):
384 """
385 Display the i18n JavaScript that the Django admin requires.
386
387 `extra_context` is unused but present for consistency with the other
388 admin views.
389 """
390 return JavaScriptCatalog.as_view(packages=["django.contrib.admin"])(request)
391
392 def logout(self, request, extra_context=None):
393 """

Callers

nothing calls this directly

Calls 1

as_viewMethod · 0.45

Tested by

no test coverage detected