Commit 690cb616 authored by Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss
Browse files

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
parent fc458dd7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,))