Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #21490 -- Fixed custom admin URL reverse example.

Thanks glarrain for the report.
  • Loading branch information...
commit bfe7377adbc0d10dc553a317671c193dce692ad3 1 parent 2a0ae9b
@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
@@ -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',
@bmispelon Collaborator

Shouldn't this be 'admin:polls_choice_change'?

cc @apollo13

@timgraham Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ ... 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.