[PATCH] Implement __unicode__ in models instead of __str__

Jeremy Kerr jk at ozlabs.org
Fri Feb 11 12:11:38 EST 2011

Hi Dirk,

> According to the Django documentation at [1] it is recommended to
> implement __unicode__ and not __str__.  Django's model base class
> provides a __str__ method that will use the __unicode__ method and
> convert to utf-8.  Also, every text value returned from the DB through
> the model is unicode.

Been meaning to do this for a while, thanks for the patch (which I've 



More information about the Patchwork mailing list