Permalink
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
  • Loading branch information...
1 parent fc458dd commit 690cb616ce7ac9d0ef6278e391b52049ee759ca0 @jacobian jacobian committed May 14, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/admin/index.txt
@@ -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,))

0 comments on commit 690cb61

Please sign in to comment.