summaryrefslogtreecommitdiff
path: root/public/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'public/views.py')
-rw-r--r--public/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/views.py b/public/views.py
index 1aae2846..bb9cd454 100644
--- a/public/views.py
+++ b/public/views.py
@@ -31,11 +31,13 @@ USER_LISTS = {
}
def userlist(request, user_type='hackers'):
- users = User.objects.order_by('username').select_related('userprofile')
+ users = User.objects.order_by(
+ 'username').select_related('userprofile')
if user_type == 'hackers':
users = users.filter(is_active=True, groups__name="Hackers")
elif user_type == 'fellows':
- users = users.filter(is_active=False, groups__name__in=["Hackers"])
+ users = users.filter(is_active=False,
+ groups__name__in=["Hackers"])
else:
raise Http404