#11268: django.contrib.admin.util.quote does not handle spaces (%20 -> _20)
----------------------------------+-----------------------------------------
 Reporter:  mcsmart               |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.0       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 I have a primary key that allows spaces, e.g., "foo bar", which comes
 up in the admin list page properly, but the
 URL becomes "http://example.com/admin/myapp/mymodel/foo%20bar/"; when I
 expect it to become "http://example.com/admin/myapp/mymodel/
 foo_20bar/".  If you follow the link you'll get a debug page with:

 """
 Page not found (404)
 Request Method:         GET
 Request URL:    http://example.com/admin/myapp/mymodel/foo%20bar/

 mymodel object with primary key u'foo%20bar' does not exist.
 """

 It seems that django.contrib.admin.util.quote should convert spaces
 along with the other characters it already does.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11268>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to