Some inappropriate unicode handling in contrib/admin/views/main.py
|Reported by:||Owned by:||Adrian Holovaty|
|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
I attach the patch which may have some non-necessary changes, but please consider it.