Default country selection to Any

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-07-02 20:11:48 -05:00
parent 3279d4b165
commit 70b03d3ef7

View File

@ -15,6 +15,7 @@ def __init__(self, *args, **kwargs):
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