diff options
author | Dan McGee <dan@archlinux.org> | 2010-12-07 11:55:08 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-07 11:55:08 -0600 |
commit | be3080f912e7379ae9f6b6e78126a941c2534fe4 (patch) | |
tree | 1a1eac3f9dda7a6f76039794e648ab304324d0e3 | |
parent | 1b826f3e12b66d9e2d3a90b1dddf5170ab48dc12 (diff) |
Don't require country on mirrorlist submission
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | mirrors/views.py | 2 |
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'] |