Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored May 14, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/ref/contrib/admin/index.txt
4  docs/ref/contrib/admin/index.txt
@@ -1288,8 +1288,8 @@ call::
1288 1288
 
1289 1289
     >>> from django.core import urlresolvers
1290 1290
     >>> c = Choice.objects.get(...)
1291  
-    >>> change_url = urlresolvers.reverse('admin_polls_choice_change', (c.id,))
  1291
+    >>> change_url = urlresolvers.reverse('admin_polls_choice_change', args=(c.id,))
1292 1292
 
1293 1293
 However, if the admin instance was named ``custom``, you would need to call::
1294 1294
 
1295  
-    >>> change_url = urlresolvers.reverse('custom_admin_polls_choice_change', (c.id,))
  1295
+    >>> change_url = urlresolvers.reverse('custom_admin_polls_choice_change', args=(c.id,))

0 notes on commit 690cb61

Please sign in to comment.
Something went wrong with that request. Please try again.