Skip to content

Commit

Permalink
Fixed #21490 -- Fixed custom admin URL reverse example.
Browse files Browse the repository at this point in the history
Thanks glarrain for the report.
  • Loading branch information
timgraham committed Nov 24, 2013
1 parent 2a0ae9b commit bfe7377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/ref/contrib/admin/index.txt
Expand Up @@ -2522,7 +2522,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',

This comment has been minimized.

Copy link
@bmispelon

bmispelon Nov 24, 2013

Member

Shouldn't this be 'admin:polls_choice_change'?

cc @apollo13

This comment has been minimized.

Copy link
@timgraham

timgraham Nov 24, 2013

Author Member

Oops, that's what is suggested in the ticket -- I just missed it.

... args=(c.id,), current_app='custom')

For more details, see the documentation on :ref:`reversing namespaced URLs
<topics-http-reversing-url-namespaces>`.
Expand Down

0 comments on commit bfe7377

Please sign in to comment.