UnicodeDecodeError in admin views for python 2.3.
|Reported by:||Nils Fredrik Gjerull||Owned by:||Karen Tracey|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Because I work in a company that uses python 2.3 on the production server and because I use characters outside the ascii range, I have run onto a number of UnicodeDecodeErrors. Python 2.3 unfortunately has a bug, it calls str methods on objects included in unicode template strings even if the object has a unicode method.
Now I have run onto another one. It was a quick fix to solve this, but it was more difficult to make a regression test for it. This bug is only triggered if a model is registered as a inline, but not registered directly with the admin.
To help fight UnicodeDecodeErrors I have made a new TestCase class in the admin_views regression test with the sole purpose of detecting missing force_unicode calls in the admin views.
Change History (5)
comment:1 Changed 8 years ago by
|Owner:||changed from nobody to Karen Tracey|
|Status:||new → assigned|
|Triage Stage:||Unreviewed → Accepted|