Some inappropriate unicode handling in contrib/admin/views/main.py
|Reported by:||daybreaker12@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have models which have __unicode__ method that returns unicode string including Korean utf8 characters.
With some configuration of MySQL 5.0.27, everything works OK, but the admin mode does not.
Altough inserting, updating the tables of my own models works fine, UnicodeDecodeException is occurred when the insertion query to djang_admin_log table is executed.
I've found that this problem is inappropriate handling of objects that has non-ascii unicode string output for __unicode__ method.
I attach the patch which may have some non-necessary changes, but please consider it.
Change History (9)
comment:1 Changed 9 years ago by daybreaker12@…
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 9 years ago by mtredinnick
- Resolution set to fixed
- Status changed from new to closed