try:\r
return reverse(fn.__name__, kwargs={'id': vu.id, 'slug': slugify(smart_unicode(vu.username))})\r
except NoReverseMatch:\r
- return reverse(fn.__name__, kwargs={'id': vu.id})\r
+ try:\r
+ return reverse(fn.__name__, kwargs={'id': vu.id})\r
+ except NoReverseMatch:\r
+ return reverse(fn.__name__, kwargs={'slug': slugify(smart_unicode(vu.username))})\r
\r
ui.register(ui.PROFILE_TABS, ui.ProfileTab(\r
tab_name, tab_title, tab_description,url_getter, private, render_to, weight\r