From 690cb616ce7ac9d0ef6278e391b52049ee759ca0 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Thu, 14 May 2009 02:17:40 +0000 Subject: [PATCH] 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 --- docs/ref/contrib/admin/index.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 700303fbf77..6719527d2f2 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/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,))