summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-09 11:26:00 -0600
committerDan McGee <dan@archlinux.org>2012-03-09 11:26:00 -0600
commit749b0447287332c200585c2eb7ef6c4833b815d5 (patch)
tree158fe9dd394355a6115d272bcf783c29ce22d31b
parentc919e337bf6afff22172a4a1f03581bc389431cd (diff)
downloadarchweb-749b0447287332c200585c2eb7ef6c4833b815d5.tar.gz
archweb-749b0447287332c200585c2eb7ef6c4833b815d5.zip
Ensure users only show up once on the Fellows page
If a user was in both Developer and TU groups, they would show up twice. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--public/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/views.py b/public/views.py
index 66c3a74f..1f7006a6 100644
--- a/public/views.py
+++ b/public/views.py
@@ -49,6 +49,7 @@ def userlist(request, user_type='devs'):
else:
raise Http404
+ users = users.distinct()
context = USER_LISTS[user_type].copy()
context['users'] = users
return direct_to_template(request, 'public/userlist.html', context)