diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-18 15:10:20 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-18 15:10:20 -0500 |
commit | 1b91de94357a60ad372abe4213d1fa52f5fc9c9e (patch) | |
tree | 72d5aca838eabda1ff7f02233ef5d4977fc5a7c4 /mirrors/views.py | |
parent | 1e3191ff566bf085f3deefddaa5986cee944dceb (diff) |
mirrors: pylint discovered cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
-rw-r--r-- | mirrors/views.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mirrors/views.py b/mirrors/views.py index 69592146..f03a2e8a 100644 --- a/mirrors/views.py +++ b/mirrors/views.py @@ -1,6 +1,5 @@ from django import forms from django.core.serializers.json import DjangoJSONEncoder -from django.db.models import Avg, Count, Max, Min, StdDev from django.db.models import Q from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404 @@ -96,11 +95,11 @@ def find_mirrors(request, countries=None, protocols=None, use_status=False, mimetype='text/plain') def mirrors(request): - mirrors = Mirror.objects.select_related().order_by('tier', 'country') + mirror_list = Mirror.objects.select_related().order_by('tier', 'country') if not request.user.is_authenticated(): - mirrors = mirrors.filter(public=True, active=True) + mirror_list = mirror_list.filter(public=True, active=True) return direct_to_template(request, 'mirrors/mirrors.html', - {'mirror_list': mirrors}) + {'mirror_list': mirror_list}) def mirror_details(request, name): mirror = get_object_or_404(Mirror, name=name) |