diff --git a/django/contrib/admin/urls.py b/django/contrib/admin/urls.py index 551893e214..507a21d11f 100644 --- a/django/contrib/admin/urls.py +++ b/django/contrib/admin/urls.py @@ -24,5 +24,5 @@ urlpatterns = patterns('', ('^((?:[^/]+/)+?)([^/]+)/history/$', 'django.contrib.admin.views.main.history'), ('^((?:[^/]+/)+?)([^/]+)/delete/$', 'django.contrib.admin.views.stages.delete.delete_stage'), ('^((?:[^/]+/)+?)([^/]+)/change/$', 'django.contrib.admin.views.stages.change.change_stage'), - ('^((?:[^/]+/)+?)$', 'django.contrib.admin.views.changelist.change_list' ), + ('^((?:[^/]+/)+?)$', 'django.contrib.admin.views.changelist.change_list'), ) diff --git a/django/contrib/admin/views/changelist.py b/django/contrib/admin/views/changelist.py index 488e1dc7b7..b6121dc074 100644 --- a/django/contrib/admin/views/changelist.py +++ b/django/contrib/admin/views/changelist.py @@ -127,7 +127,7 @@ class ChangeList(object): full_result_count, result_list, can_show_all, multi_page, paginator ) def url_for_result(self, result): - return "%s/change" % getattr(result, self.pk_attname) + return "%s/change/" % getattr(result, self.pk_attname) def get_ordering(self): lookup_opts, params = self.lookup_opts, self.params