﻿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
19406	Lacking named groups in urlpatterns of admin causes NoReverseMatch	liokmkoil@…	nobody	"As described in http://stackoverflow.com/q/13609600/165603
{{{
urlresolvers.reverse('admin:cards_card_change', args=[92])
}}}
could get the URL successfully, however the following cannot
{{{
urlresolvers.reverse('admin:cards_card_change', kwargs={'object_id':92})
}}}

The lacking of named groups [https://github.com/django/django/blob/stable/1.4.x/django/contrib/admin/options.py#L378 in urlpattern] causes the inconsistent behavior

{{{
        urlpatterns = patterns('',
            #...
            url(r'^(.+)/history/$',
                wrap(self.history_view),
                name='%s_%s_history' % info),
            url(r'^(.+)/delete/$',
                wrap(self.delete_view),
                name='%s_%s_delete' % info),
            url(r'^(.+)/$',
                wrap(self.change_view),
                name='%s_%s_change' % info),
        )
}}}

Both `history_view`, `delete_view` and `change_view` accept `object_id`, thus we could replace `r'^(.+)...'` to `r'^(?P<object_id>.+)...'` to fix the problem."	Bug	closed	contrib.admin	dev	Normal	needsinfo			Unreviewed	0	0	0	0	1	0
