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
This commit is contained in:
parent
5e57f795b5
commit
22260f968c
|
@ -24,5 +24,5 @@ urlpatterns = patterns('',
|
||||||
('^((?:[^/]+/)+?)([^/]+)/history/$', 'django.contrib.admin.views.main.history'),
|
('^((?:[^/]+/)+?)([^/]+)/history/$', 'django.contrib.admin.views.main.history'),
|
||||||
('^((?:[^/]+/)+?)([^/]+)/delete/$', 'django.contrib.admin.views.stages.delete.delete_stage'),
|
('^((?:[^/]+/)+?)([^/]+)/delete/$', 'django.contrib.admin.views.stages.delete.delete_stage'),
|
||||||
('^((?:[^/]+/)+?)([^/]+)/change/$', 'django.contrib.admin.views.stages.change.change_stage'),
|
('^((?:[^/]+/)+?)([^/]+)/change/$', 'django.contrib.admin.views.stages.change.change_stage'),
|
||||||
('^((?:[^/]+/)+?)$', 'django.contrib.admin.views.changelist.change_list' ),
|
('^((?:[^/]+/)+?)$', 'django.contrib.admin.views.changelist.change_list'),
|
||||||
)
|
)
|
||||||
|
|
|
@ -127,7 +127,7 @@ class ChangeList(object):
|
||||||
full_result_count, result_list, can_show_all, multi_page, paginator )
|
full_result_count, result_list, can_show_all, multi_page, paginator )
|
||||||
|
|
||||||
def url_for_result(self, result):
|
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):
|
def get_ordering(self):
|
||||||
lookup_opts, params = self.lookup_opts, self.params
|
lookup_opts, params = self.lookup_opts, self.params
|
||||||
|
|
Loading…
Reference in New Issue