Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #21490 -- Fixed custom admin URL reverse example.
Thanks glarrain for the report.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
timgraham
Author
Member
|
||
... args=(c.id,), current_app='custom') | ||
|
||
For more details, see the documentation on :ref:`reversing namespaced URLs | ||
<topics-http-reversing-url-namespaces>`. | ||
|
Shouldn't this be
'admin:polls_choice_change'
?cc @apollo13