diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-30 14:32:54 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-30 14:32:54 -0500 |
commit | bb84f9c96cb9df4e47e517f424a28fc36b4bed28 (patch) | |
tree | a5f2dc94861f1262a8743d3ba2c8d060be61536d /mirrors/views.py | |
parent | 3ebe31bdadfcb9c6571b250e53da1f7dd7ebeb66 (diff) |
Use new is_download field
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
-rw-r--r-- | mirrors/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mirrors/views.py b/mirrors/views.py index 34385a98..24ca0324 100644 --- a/mirrors/views.py +++ b/mirrors/views.py @@ -25,7 +25,7 @@ class MirrorlistForm(forms.Form): self.fields['country'].choices = make_choice(mirrors) self.fields['country'].initial = ['Any'] protos = make_choice( - MirrorProtocol.objects.exclude(protocol__iexact='rsync')) + MirrorProtocol.objects.filter(is_download=True)) self.fields['protocol'].choices = protos self.fields['protocol'].initial = [t[0] for t in protos] @@ -45,8 +45,8 @@ def generate_mirrorlist(request): def find_mirrors(request, countries=None, protocols=None, use_status=False): if not protocols: - protocols = MirrorProtocol.objects.exclude( - protocol__iexact='rsync').values_list('protocol', flat=True) + protocols = MirrorProtocol.objects.filter( + is_download=True).values_list('protocol', flat=True) qset = MirrorUrl.objects.select_related().filter( protocol__protocol__in=protocols, mirror__public=True, mirror__active=True, mirror__isos=True |