UnicodeDecodeError in admin views for python 2.3.
|Reported by:||nfg||Owned by:||kmtracey|
|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)
Changed 6 years ago by nfg
comment:1 Changed 6 years ago by kmtracey
- Needs documentation unset
- Needs tests unset
- Owner changed from nobody to kmtracey
- Patch needs improvement unset
- Status changed from new to assigned
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 6 years ago by kmtracey
- Resolution set to fixed
- Status changed from assigned to closed