Default country selection to Any
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
3279d4b165
commit
70b03d3ef7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user