diff options
Diffstat (limited to 'mirrors/views.py')
-rw-r--r-- | mirrors/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mirrors/views.py b/mirrors/views.py index 24ca0324..d0fe42f9 100644 --- a/mirrors/views.py +++ b/mirrors/views.py @@ -22,8 +22,9 @@ class MirrorlistForm(forms.Form): super(MirrorlistForm, self).__init__(*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'] + self.fields['country'].choices = [('all','All')] + make_choice( + mirrors) + self.fields['country'].initial = ['all'] protos = make_choice( MirrorProtocol.objects.filter(is_download=True)) self.fields['protocol'].choices = protos |