From: Matthijs Kooijman Date: Thu, 27 Nov 2008 22:09:05 +0000 (+0100) Subject: Define __unicode__ on models instead of __str__. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=f17ba3f9ec768ead9811c8e93a20328755fcecfd;hp=f17ba3f9ec768ead9811c8e93a20328755fcecfd;p=matthijs%2Fprojects%2Fxerxes.git Define __unicode__ on models instead of __str__. When the result of __str__ is a unicode object containing non-ascii characters, str(instance) barfs with an encoding error. ---