Fixed #10886: corrected a mistaken example in the admin docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-05-14 02:17:40 +00:00
parent fc458dd710
commit 690cb616ce
1 changed files with 2 additions and 2 deletions

View File

@ -1288,8 +1288,8 @@ call::
>>> from django.core import urlresolvers
>>> c = Choice.objects.get(...)
>>> change_url = urlresolvers.reverse('admin_polls_choice_change', (c.id,))
>>> change_url = urlresolvers.reverse('admin_polls_choice_change', args=(c.id,))
However, if the admin instance was named ``custom``, you would need to call::
>>> change_url = urlresolvers.reverse('custom_admin_polls_choice_change', (c.id,))
>>> change_url = urlresolvers.reverse('custom_admin_polls_choice_change', args=(c.id,))