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:39 -0500 |
| commit | 0934894976042033d74f809cefa229b82cff85f2 (patch) | |
| tree | 74e24c95b8c288911ccbfe61aa658b744d92cb05 /docs/ref | |
| parent | 01fed9c258d91bd94ca567d344be5daea7dcc53d (diff) | |
[1.5.x] Fixed #21490 -- Fixed custom admin URL reverse example.
Thanks glarrain for the report.
Backport of bfe7377adb from master
Diffstat (limited to 'docs/ref')
| -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 26ee08640d..cdfa6c6fc9 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/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>`. |
