瀏覽代碼

Fixed typo in previous commit; refs #21490.

Tim Graham 11 年之前
父節點
當前提交
03bc0a8ac5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/ref/contrib/admin/index.txt

+ 1 - 1
docs/ref/contrib/admin/index.txt

@@ -2522,7 +2522,7 @@ that instance as a ``current_app`` hint to the reverse call. For example,
 if you specifically wanted the admin view from the admin instance named
 ``custom``, you would need to call::
 
-    >>> change_url = urlresolvers.reverse('custom:polls_choice_change',
+    >>> change_url = urlresolvers.reverse('admin:polls_choice_change',
     ...                                   args=(c.id,), current_app='custom')
 
 For more details, see the documentation on :ref:`reversing namespaced URLs