summaryrefslogtreecommitdiff
path: root/public/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'public/views.py')
-rw-r--r--public/views.py30
1 files changed, 9 insertions, 21 deletions
diff --git a/public/views.py b/public/views.py
index 46291b88..0ad1ca1c 100644
--- a/public/views.py
+++ b/public/views.py
@@ -8,6 +8,7 @@ from django.db.models import Q
from django.http import Http404
from django.views.generic import list_detail
from django.views.generic.simple import direct_to_template
+from django.shortcuts import redirect
def index(request):
@@ -20,27 +21,21 @@ def index(request):
USER_LISTS = {
'devs': {
- 'user_type': 'Developers',
- 'description': "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.",
- },
- 'tus': {
- 'user_type': 'Trusted Users',
- 'description': "Here are all your friendly Arch Linux Trusted Users who are in charge of the [community] repository.",
+ 'user_type': 'Hackers',
+ 'description': "This is a list of the current Parabola Hackers. They maintain the [libre] package repository and keep the [core], [extra] and [community] repositories clean of unfree software, in addition to doing any other developer duties.",
},
'fellows': {
'user_type': 'Fellows',
- 'description': "Below you can find a list of ex-developers (aka project fellows). These folks helped make Arch what it is today. Thanks!",
+ 'description': "Below you can find a list of ex-hackers (aka project fellows). These folks helped make Parabola what it is today. Thanks!",
},
}
-def userlist(request, type='devs'):
+def userlist(request, type='hackers'):
users = User.objects.order_by('username').select_related('userprofile')
- if type == 'devs':
- users = users.filter(is_active=True, groups__name="Developers")
- elif type == 'tus':
- users = users.filter(is_active=True, groups__name="Trusted Users")
+ if type == 'hackers':
+ users = users.filter(is_active=True, groups__name="Hackers")
elif type == 'fellows':
- users = users.filter(is_active=False, groups__name__in=["Developers", "Trusted Users"])
+ users = users.filter(is_active=False, groups__name__in=["Hackers"])
else:
raise Http404
@@ -55,14 +50,7 @@ def donate(request):
return direct_to_template(request, 'public/donate.html', context)
def download(request):
- qset = MirrorUrl.objects.select_related('mirror', 'protocol').filter(
- protocol__is_download=True,
- mirror__public=True, mirror__active=True, mirror__isos=True
- )
- return list_detail.object_list(request,
- qset.order_by('mirror__country', 'mirror__name', 'protocol'),
- template_name="public/download.html",
- template_object_name="mirror_url")
+ return redirect('http://wiki.parabolagnulinux.org/get', permanent=True)
def feeds(request):
context = {