summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-23 18:15:00 -0500
committerDan McGee <dan@archlinux.org>2010-09-24 19:39:37 -0500
commit1c6099f4b27f31c100b8bfa0d18f439075cceff0 (patch)
tree172405ceeba848ae2c6186febbbd164f6783c287 /devel/views.py
parent46dec163468f0e53b00b68f5c370b5e7b5e4cfc3 (diff)
Make general mirror list view public
Hide some columns when not logged in because they aren't relevant for the general public, but this will work nicely as a base page for all of our known mirrors. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/devel/views.py b/devel/views.py
index c974806e..577a00c4 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -10,7 +10,6 @@ from django.views.generic.simple import direct_to_template
from main.models import Package, Todolist, TodolistPkg
from main.models import Arch, Repo
from main.models import UserProfile
-from mirrors.models import Mirror
from packages.models import PackageRelation
from .utils import get_annotated_maintainers
@@ -79,12 +78,6 @@ def change_profile(request):
form = ProfileForm(initial={'email': request.user.email})
return direct_to_template(request, 'devel/profile.html', {'form': form})
-@login_required
-def mirrorlist(request):
- mirrors = Mirror.objects.select_related().order_by('tier', 'country')
- return direct_to_template(request, 'devel/mirrorlist.html',
- {'mirror_list': mirrors})
-
class NewUserForm(forms.ModelForm):
class Meta:
model = UserProfile