summaryrefslogtreecommitdiff
path: root/mirrors/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-07 11:55:08 -0600
committerDan McGee <dan@archlinux.org>2010-12-07 11:55:08 -0600
commitbe3080f912e7379ae9f6b6e78126a941c2534fe4 (patch)
tree1a1eac3f9dda7a6f76039794e648ab304324d0e3 /mirrors/views.py
parent1b826f3e12b66d9e2d3a90b1dddf5170ab48dc12 (diff)
Don't require country on mirrorlist submission
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
-rw-r--r--mirrors/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index fb7d3361..b9df6ba1 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']