summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-07 18:55:08 +0100
committerDan McGee <dan@archlinux.org>2010-12-07 18:55:08 +0100
commitbe3080f912e7379ae9f6b6e78126a941c2534fe4 (patch)
tree1a1eac3f9dda7a6f76039794e648ab304324d0e3
parent1b826f3e12b66d9e2d3a90b1dddf5170ab48dc12 (diff)
downloadarchweb-be3080f912e7379ae9f6b6e78126a941c2534fe4.tar.gz
archweb-be3080f912e7379ae9f6b6e78126a941c2534fe4.tar.xz
Don't require country on mirrorlist submission
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index fb7d336..b9df6ba 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -34,7 +34,7 @@ class MirrorlistForm(forms.Form):
@csrf_exempt
def generate_mirrorlist(request):
- if request.REQUEST.get('country', ''):
+ if request.method == 'POST' or len(request.GET) > 0:
form = MirrorlistForm(data=request.REQUEST)
if form.is_valid():
countries = form.cleaned_data['country']