]> git.openstreetmap.org Git - osqa.git/commitdiff
#OSQA-663, convert the context username to a Unicode object.
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 3 May 2011 14:43:21 +0000 (14:43 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 3 May 2011 14:43:21 +0000 (14:43 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1015 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/registry.py

index ec973895e546aa70904168e993651d07fbf67554..e5fb7c6fd4005941471e3d51b6f78a9811530a64 100644 (file)
@@ -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'