X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2e2c5ce5034cc846db2837fdc382d754e9cd72a3..fd5174ac564e77cabc5e1a5919f2d29f426fb261:/forum/models/user.py?ds=sidebyside diff --git a/forum/models/user.py b/forum/models/user.py index b5bef17..ae8f938 100644 --- a/forum/models/user.py +++ b/forum/models/user.py @@ -205,7 +205,11 @@ class User(BaseModel, DjangoUser): @models.permalink def get_asked_url(self): - return ('user_questions', (), {'mode': _('asked-by'), 'user': self.id, 'slug': slugify(self.username)}) + return ('user_questions', (), {'mode': _('asked-by'), 'user': self.id, 'slug': slugify(smart_unicode(self.username))}) + + @models.permalink + def get_user_subscriptions_url(self): + return ('user_subscriptions', (), { 'id': self.id, 'slug': slugify(smart_unicode(self.username))}) @models.permalink def get_answered_url(self):