1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00

[4.2.x] Added missing vars to AdminSite.each_context() docs.

Backport of 1964e4367f from main
This commit is contained in:
Carlton Gibson 2023-02-08 17:59:56 +01:00
parent 836ae73a89
commit efe16fd72a

View File

@ -2871,6 +2871,9 @@ Templates can override or extend base admin templates as described in
* ``admin_url``: admin changelist URL for the model * ``admin_url``: admin changelist URL for the model
* ``add_url``: admin URL to add a new model instance * ``add_url``: admin URL to add a new model instance
* ``is_popup``: whether the current page is displayed in a popup window
* ``is_nav_sidebar_enabled``: :attr:`AdminSite.enable_nav_sidebar`
.. method:: AdminSite.get_app_list(request, app_label=None) .. method:: AdminSite.get_app_list(request, app_label=None)
Returns a list of applications from the :doc:`application registry Returns a list of applications from the :doc:`application registry