aboutsummaryrefslogtreecommitdiff
path: root/apps/settings.py
diff options
context:
space:
mode:
authorDirk Wallenstein <halsmit@t-online.de>2011-01-15 01:16:21 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-02-11 08:54:27 +0800
commit47c56dfaceefaa44e5057236a5b63a05f68a981d (patch)
tree76a1e54fc64bee32610719d3cf3ab0c5d6746b49 /apps/settings.py
parentdf79fa039b310ec648e4f027c47980101795a1d8 (diff)
downloadpatchwork-47c56dfaceefaa44e5057236a5b63a05f68a981d.tar
patchwork-47c56dfaceefaa44e5057236a5b63a05f68a981d.tar.gz
models: Implement __unicode__ in models instead of __str__
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. It is now possible to edit Patches and Persons that have values with non-ASCII characters through the admin interface. [1] http://docs.djangoproject.com/en/1.2/ref/unicode/ Signed-off-by: Dirk Wallenstein <halsmit@t-online.de> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/settings.py')
0 files changed, 0 insertions, 0 deletions