diff options
author | PyroPeter <abi1789@googlemail.com> | 2010-10-10 18:49:16 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-14 01:14:10 +0200 |
commit | 670aefbb14065e8f9539755bf58373accbc93c13 (patch) | |
tree | 30f4cb1e44eb6fd800bce6ebfaa86ac35e16d95b /mirrors | |
parent | 97d1e4164bf5526c3b63570d27c8377b4dfcac46 (diff) | |
download | archweb-670aefbb14065e8f9539755bf58373accbc93c13.tar.gz archweb-670aefbb14065e8f9539755bf58373accbc93c13.tar.xz |
Add 'All' choice and make it the default
Signed-off-by: PyroPeter <abi1789@googlemail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-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 24ca032..d0fe42f 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 |