From 820003b96cce1aa6871daf788b38b96c894098b0 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Fri, 14 Sep 2012 14:29:17 -0400 Subject: [PATCH 1/2] Prevent showing redundant roles for this user --- lms/templates/discussion/_user_profile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/discussion/_user_profile.html b/lms/templates/discussion/_user_profile.html index 7bf58a256a..1ab0f2fee7 100644 --- a/lms/templates/discussion/_user_profile.html +++ b/lms/templates/discussion/_user_profile.html @@ -5,7 +5,7 @@
<% - role_names = sorted(map(attrgetter('name'), django_user.roles.all())) + role_names = sorted(set(map(attrgetter('name'), django_user.roles.all()))) %>