@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):
{% endif %}\r
</a></p>\r
<p>\r
- {% url user_subscriptions id=request.user.id,slug=request.user.username|slugify as subscriptions_url %}\r
- {% blocktrans %}\r
+ {% blocktrans with request.user.get_user_subscriptions_url as subscriptions_url %}\r
(you can adjust your notification settings on your <a href="{{ subscriptions_url }}">profile</a>)\r
{% endblocktrans %}\r
</p>\r