diff options
author | Dan McGee <dan@archlinux.org> | 2010-01-30 13:50:16 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-01-30 13:53:11 -0600 |
commit | 85ff158e2db7b8de9094b72eee3e0a45630120c3 (patch) | |
tree | 4eeff6ae32b63b5b8a8d17754740e83f275b1109 /devel | |
parent | f1047dd4b330d5f9011076f346422f2b322ada9f (diff) |
Use select_related() for some mirror pages
We also traverse relationships here, so select the associated items.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/views.py | 2 |
1 files changed, 1 insertions, 1 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})) |