Ticket #10886: reverse.patch
File reverse.patch, 752 bytes (added by , 16 years ago) |
---|
-
docs/ref/contrib/admin/index.txt
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,))