id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 11268 django.contrib.admin.util.quote does not handle spaces (%20 -> _20) mcsmart nobody "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." closed contrib.admin 1.0 invalid Unreviewed 1 0 1 0 0 0