]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/registry.py
Allow for missing content types
[osqa.git] / forum / registry.py
index 4c8df6531d46a342a286d197c43555fb23a92030..871f1e5d0eccf65f036106cb495b50d2b3346a4b 100644 (file)
@@ -71,7 +71,10 @@ class SuperUserSwitchMenuItem(ui.UserMenuItem):
 ui.register(ui.USER_MENU,
             ui.UserMenuItem(
                 label=_("edit profile"),
-                url=lambda u, c: reverse('edit_user', kwargs={'id': c['user'].id}),
+                url=lambda u, c: reverse('edit_user', kwargs={
+                    'id': c['user'].id,
+                    'slug' : slugify(c['user'].username)
+                }),
                 span_attrs={'class': 'user-edit'},
                 weight=0,
                 name='EDIT_PROFILE'