1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

newforms-admin: Called unquote() on object_id in ModelAdminView.__call__() so the individual views don't have to deal with it

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-01-14 20:08:20 +00:00
parent b3cce4326b
commit 980b7a9927

View File

@ -124,11 +124,11 @@ class ModelAdminView(object):
elif url.endswith('add'):
return self.add_view(request)
elif url.endswith('history'):
return self.history_view(request, url[:-8])
return self.history_view(request, unquote(url[:-8]))
elif url.endswith('delete'):
return self.delete_view(request, url[:-7])
return self.delete_view(request, unquote(url[:-7]))
else:
return self.change_view(request, url)
return self.change_view(request, unquote(url))
def add_view(self, request):
"The 'add' admin view for this model."