From be3080f912e7379ae9f6b6e78126a941c2534fe4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 7 Dec 2010 11:55:08 -0600 Subject: Don't require country on mirrorlist submission Signed-off-by: Dan McGee --- mirrors/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mirrors') 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 @@ def __init__(self, *args, **kwargs): @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'] -- cgit v1.2.3-54-g00ecf