Permalink
Browse files

missing unicode support for notification model

  • Loading branch information...
1 parent 4c0a83d commit 87c7d38e3fac821d44f8eab15c8ef418476161d9 @miratcan miratcan committed Dec 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 notifications/models.py
View
@@ -126,11 +126,11 @@ def __unicode__(self):
}
if self.target:
if self.action_object:
- return '%(actor)s %(verb)s %(action_object)s on %(target)s %(timesince)s ago' % ctx
- return '%(actor)s %(verb)s %(target)s %(timesince)s ago' % ctx
+ return u'%(actor)s %(verb)s %(action_object)s on %(target)s %(timesince)s ago' % ctx
+ return u'%(actor)s %(verb)s %(target)s %(timesince)s ago' % ctx
if self.action_object:
- return '%(actor)s %(verb)s %(action_object)s %(timesince)s ago' % ctx
- return '%(actor)s %(verb)s %(timesince)s ago' % ctx
+ return u'%(actor)s %(verb)s %(action_object)s %(timesince)s ago' % ctx
+ return u'%(actor)s %(verb)s %(timesince)s ago' % ctx
def timesince(self, now=None):
"""

0 comments on commit 87c7d38

Please sign in to comment.