summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/views.py2
-rw-r--r--mirrors/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/devel/views.py b/devel/views.py
index 7e5f79ae..29dfcd00 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -71,7 +71,7 @@ def change_profile(request):
@login_required
def mirrorlist(request):
- mirrors = Mirror.objects.all()
+ mirrors = Mirror.objects.select_related().all()
return render_to_response('devel/mirrorlist.html',
RequestContext(request, {'mirror_list': mirrors}))
diff --git a/mirrors/views.py b/mirrors/views.py
index da54774f..45ac5738 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -39,7 +39,7 @@ def choose(request):
def generate(request, arch='i686', country=None):
# do a quick sanity check on the architecture
archobj = get_object_or_404(Arch, name=arch)
- qset = MirrorUrl.objects.filter(
+ qset = MirrorUrl.objects.select_related().filter(
Q(protocol__protocol__iexact='HTTP') |
Q(protocol__protocol__iexact='FTP'),
mirror__public=True, mirror__active=True, mirror__isos=True