From 87c7d38e3fac821d44f8eab15c8ef418476161d9 Mon Sep 17 00:00:00 2001 From: Mirat Can Bayrak Date: Wed, 26 Dec 2012 20:41:23 +0200 Subject: [PATCH] missing unicode support for notification model --- notifications/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notifications/models.py b/notifications/models.py index 67ff440..d4055dd 100644 --- a/notifications/models.py +++ b/notifications/models.py @@ -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): """