mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-05-10 06:14:43 +00:00
missing unicode support for notification model
This commit is contained in:
parent
4c0a83d98a
commit
87c7d38e3f
1 changed files with 4 additions and 4 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue