Add __unicode__ representation to Notification and MediaCommentMixin 791-international-comments-fail
authorTryggvi Bjorgvinsson <tryggvib@fsfi.is>
Sat, 19 Jul 2014 12:35:50 +0000 (12:35 +0000)
committerTryggvi Bjorgvinsson <tryggvib@fsfi.is>
Sat, 19 Jul 2014 12:35:50 +0000 (12:35 +0000)
commit89bd816cff47ba6d37a20e58c3053380a0c368ea
treeb2966e91a3734fb4e78c4d9c538e01637d6735b9
parentd06e59525a9883f99382a3da7014182eefc9a229
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