Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 690cb616ce7ac9d0ef6278e391b52049ee759ca0 1 parent fc458dd
@jacobian jacobian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/admin/index.txt
View
4 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,))
Please sign in to comment.
Something went wrong with that request. Please try again.