diff options
| author | Tim Graham <timograham@gmail.com> | 2013-11-24 14:33:04 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-11-24 15:19:05 -0500 |
| commit | bfe7377adbc0d10dc553a317671c193dce692ad3 (patch) | |
| tree | b115c1bdf654f52a7e84d74690ab2855328b7968 /docs | |
| parent | 2a0ae9b9ecf7a2f835faf7d944f41bf83c316a50 (diff) | |
Fixed #21490 -- Fixed custom admin URL reverse example.
Thanks glarrain for the report.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 79faaf9e6c..93476325af 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/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', + ... args=(c.id,), current_app='custom') For more details, see the documentation on :ref:`reversing namespaced URLs <topics-http-reversing-url-namespaces>`. |
