﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10886	"""Reversing Admin URLs"" section provides invalid examples"	Simon Meers <DrMeers@…>	Jacob	"
{{{
urlresolvers.reverse('admin_polls_choice_change', (c.id,))
}}}

should be:

{{{
urlresolvers.reverse('admin_polls_choice_change', args=[c.id,])
}}}

otherwise (c.id,) is interpreted as the urlconf argument, and an error such as:

{{{
AttributeError: 'int' object has no attribute 'regex'
}}}

is raised, since (c.id,) is not a urlconf. The second example with custom_admin_... should also be changed."		closed	Documentation	1.0		fixed			Ready for checkin	1	0	0	0	0	0
