summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/views.py b/devel/views.py
index f9aacec2..402ed26c 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -7,6 +7,7 @@ from django.core.mail import send_mail
from archweb_dev.main.models import Package, Todolist
from archweb_dev.main.models import Arch, Repo
from archweb_dev.main.models import UserProfile, News
+from archweb_dev.main.models import Mirror
import random
from string import ascii_letters, digits
pwletters = ascii_letters + digits
@@ -73,6 +74,11 @@ def siteindex(request):
RequestContext(request,
{'news_updates': news, 'pkg_updates': pkgs, 'repos': repos}))
+def mirrorlist(request):
+ mirrors = Mirror.objects.all()
+ return render_to_response('devel/mirrorlist.html',
+ RequestContext(request, {'mirror_list': mirrors}))
+
class NewUserForm(forms.ModelForm):
class Meta:
model = UserProfile