Author: adrian
Date: 2007-01-14 14:08:20 -0600 (Sun, 14 Jan 2007)
New Revision: 4318

Modified:
  django/branches/newforms-admin/django/contrib/admin/views/main.py
Log:
newforms-admin: Called unquote() on object_id in ModelAdminView.__call__() so 
the individual views don't have to deal with it

Modified: django/branches/newforms-admin/django/contrib/admin/views/main.py
===================================================================
--- django/branches/newforms-admin/django/contrib/admin/views/main.py   
2007-01-14 20:04:56 UTC (rev 4317)
+++ django/branches/newforms-admin/django/contrib/admin/views/main.py   
2007-01-14 20:08:20 UTC (rev 4318)
@@ -124,11 +124,11 @@
        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."


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to