From: jordan Date: Tue, 3 May 2011 14:43:21 +0000 (+0000) Subject: #OSQA-663, convert the context username to a Unicode object. X-Git-Tag: live~298 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/64a645308135954353da405c26a3c6d71b2c1d47 #OSQA-663, convert the context username to a Unicode object. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1015 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/registry.py b/forum/registry.py index ec97389..e5fb7c6 100644 --- a/forum/registry.py +++ b/forum/registry.py @@ -84,7 +84,7 @@ ui.register(ui.USER_MENU, ), ui.UserMenuItem( label=_("email notification settings"), - url=lambda u, c: reverse('user_subscriptions', kwargs={'id': c['user'].id, 'slug': slugify(c['user'].username)}), + url=lambda u, c: reverse('user_subscriptions', kwargs={'id': c['user'].id, 'slug': slugify(smart_unicode(c['user'].username))}), span_attrs={'class': 'user-subscriptions'}, weight=200, name='EMAIL_SETTINGS'