missing unicode support for notification model

This commit is contained in:
Mirat Can Bayrak 2012-12-26 20:41:23 +02:00
parent 4c0a83d98a
commit 87c7d38e3f

View file

@ -126,11 +126,11 @@ class Notification(models.Model):
}
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):
"""