summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-02 20:11:48 -0500
committerDan McGee <dan@archlinux.org>2010-07-02 20:11:48 -0500
commit70b03d3ef7648a9562e715fb481567c4a2c48193 (patch)
treeaaac30f658212f563122d4bfe1cf70e83fe0e54e
parent3279d4b165b95f4a14c2123a9c06b2c3a838ed39 (diff)
Default country selection to Any
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index aaafc1be..7ef8becd 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -15,6 +15,7 @@ class MirrorlistForm(forms.Form):
mirrors = Mirror.objects.filter(active=True).values_list(
'country', flat=True).distinct().order_by('country')
self.fields['country'].choices = make_choice(mirrors)
+ self.fields['country'].initial = ['Any']
protos = make_choice(
MirrorProtocol.objects.exclude(protocol__iexact='rsync'))
self.fields['protocol'].choices = protos