Commit 820003b9 by David Ormsbee

Prevent showing redundant roles for this user

parent c72dafa9
......@@ -5,7 +5,7 @@
<div class="user-profile">
<%
role_names = sorted(map(attrgetter('name'), django_user.roles.all()))
role_names = sorted(set(map(attrgetter('name'), django_user.roles.all())))
%>
<div class="sidebar-username">${django_user.username | h}</div>
<div class="sidebar-user-roles">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment