From af65860c5bc8f5efb76df9078284996cf55114f5 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 24 Nov 2013 14:33:04 -0500 Subject: [PATCH] [1.6.x] Fixed #21490 -- Fixed custom admin URL reverse example. Thanks glarrain for the report. Backport of bfe7377adb from master --- docs/ref/contrib/admin/index.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index b6e7a58807..4826bae690 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2354,7 +2354,8 @@ 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', args=(c.id,)) + >>> change_url = urlresolvers.reverse('custom:polls_choice_change', + ... args=(c.id,), current_app='custom') For more details, see the documentation on :ref:`reversing namespaced URLs `.