浏览代码

Added missing vars to AdminSite.each_context() docs.

Carlton Gibson 2 年之前
父节点
当前提交
1964e4367f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/ref/contrib/admin/index.txt

+ 3 - 0
docs/ref/contrib/admin/index.txt

@@ -2830,6 +2830,9 @@ Templates can override or extend base admin templates as described in
       * ``admin_url``: admin changelist URL for the model
       * ``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)
 
     Returns a list of applications from the :doc:`application registry