From 22260f968c00753e1b5a748506f90e40c4b52a53 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 13 Jan 2006 04:21:55 +0000 Subject: [PATCH] magic-removal: Added slash at the end of ChangeList.url_for_result() git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1938 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/urls.py | 2 +- django/contrib/admin/views/changelist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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