[1.6.x] Fixed #21490 -- Fixed custom admin URL reverse example.

Thanks glarrain for the report.

Backport of bfe7377adb from master
This commit is contained in:
Tim Graham 2013-11-24 14:33:04 -05:00
parent 432de54611
commit af65860c5b
1 changed files with 2 additions and 1 deletions

View File

@ -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 if you specifically wanted the admin view from the admin instance named
``custom``, you would need to call:: ``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 For more details, see the documentation on :ref:`reversing namespaced URLs
<topics-http-reversing-url-namespaces>`. <topics-http-reversing-url-namespaces>`.