瀏覽代碼

Fixed reference to removed function root() in AdminSite docstring.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Luke Plant 14 年之前
父節點
當前提交
5bf73dd909
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      django/contrib/admin/sites.py

+ 3 - 2
django/contrib/admin/sites.py

@@ -28,8 +28,9 @@ class AdminSite(object):
     """
     An AdminSite object encapsulates an instance of the Django admin application, ready
     to be hooked in to your URLconf. Models are registered with the AdminSite using the
-    register() method, and the root() method can then be used as a Django view function
-    that presents a full admin interface for the collection of registered models.
+    register() method, and the get_urls() method can then be used to access Django view
+    functions that present a full admin interface for the collection of registered
+    models.
     """
 
     index_template = None