浏览代码

Fixed #34419 -- Doc'd django.contrib.admin.sites.all_sites.

Edison Wang 1 年之前
父节点
当前提交
255f534590
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/ref/contrib/admin/index.txt

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

@@ -2831,6 +2831,10 @@ linked to the document in ``{% block dark-mode-vars %}``.
     See :ref:`customizing-adminsite` for an example of customizing the
     See :ref:`customizing-adminsite` for an example of customizing the
     :class:`AdminSite` class.
     :class:`AdminSite` class.
 
 
+.. data:: django.contrib.admin.sites.all_sites
+
+    A :class:`~weakref.WeakSet` contains all admin site instances.
+
 ``AdminSite`` attributes
 ``AdminSite`` attributes
 ------------------------
 ------------------------