﻿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
27901	Unicode subclasses can't be saved to TextField with MySQL and Python 2	Dominique Barton	nobody	"Hi there

I use a custom model field (inherited from `TextField`) which simply returns its value as an ""enhanced"" `unicode` object.
Unfortunately, this will raise UnicodeErrors as MySQLdb apparently fails recognizing those values as `unicode`. The comparision isn't very clever there ;)

MySQLdb has a `use_unicode` flag, but I don't know how to implement it in Django and I think this is a serious bug.

I've prepared a whole test case right here: https://github.com/domibarton/django-mysql-unicode-error

I hope this is enough for a ""proper"" bug description.

Cheers
Domi

'''EDIT:''' It has NOTHING to do with my custom text field, this was just an example. Basically Django (or MySQLdb) fails when writing non-`unicode` objects (but `unicode`-inherited objects) values to a `TextField`. Proof for that issue is right here: https://gist.github.com/domibarton/aa691342321f63f3511bb1ff53b946c7"	Bug	closed	Database layer (models, ORM)	1.10	Normal	wontfix	mysql, unicode, error		Unreviewed	0	0	0	0	0	0
