Add __unicode__ representation to Notification and MediaCommentMixin
authorTryggvi Bjorgvinsson <tryggvib@fsfi.is>
Sat, 19 Jul 2014 12:35:50 +0000 (12:35 +0000)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 25 Jul 2014 19:37:57 +0000 (14:37 -0500)
commitdc19e98d98bc53d983d2fab73be53cbf95b42ffa
treeaa86d707ac637ef567915cd4e78c309747ac83b0
parent0e9aa9db14b19e0941fe4e585b929a575f8b7d1a
Add __unicode__ representation to Notification and MediaCommentMixin

Instead of having __repr__ return a unicode object which it should
not do, we use the __unicode__ method to allow use of Notification
and MediaCommentMixin objects in unicode strings.
mediagoblin/db/mixin.py
mediagoblin/db/models.py