Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Thanks glarrain for the report.

Backport of bfe7377 from master
  • Loading branch information...
commit 0934894976042033d74f809cefa229b82cff85f2 1 parent 01fed9c
@timgraham timgraham authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  docs/ref/contrib/admin/index.txt
View
3  docs/ref/contrib/admin/index.txt
@@ -2159,7 +2159,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
<topics-http-reversing-url-namespaces>`.
Please sign in to comment.
Something went wrong with that request. Please try again.