From 8116500afca190d6d87292ec08a9dff18a1bb261 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 6 Mar 2010 09:20:35 -0600 Subject: Make group membership use Django groups Rather than our home-baked roles field, which is free text so we really shouldn't be checking against anyway. It also prevents people from being both a developer and a TU. Signed-off-by: Dan McGee --- public/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/views.py b/public/views.py index 912801fe..eaa57343 100644 --- a/public/views.py +++ b/public/views.py @@ -21,10 +21,10 @@ def index(request): def userlist(request, type='Developers'): users = User.objects.order_by('username') if type == 'Developers': - users = users.filter(is_active=True).exclude(userprofile_user__roles="Trusted User") + users = users.filter(is_active=True, groups__name="Developers") msg = "This is a list of the current Arch Linux Developers. They maintain the [core] and [extra] package repositories in addition to doing any other developer duties." elif type == 'Trusted Users': - users = users.filter(is_active=True, userprofile_user__roles="Trusted User") + users = users.filter(is_active=True, groups__name="Trusted Users") msg = "Here are all your friendly Arch Linux Trusted Users who are in charge of the [community] repository." elif type == 'Fellows': users = users.filter(is_active=False) -- cgit v1.2.3-55-g3dc8