From 85ff158e2db7b8de9094b72eee3e0a45630120c3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 30 Jan 2010 13:50:16 -0600 Subject: Use select_related() for some mirror pages We also traverse relationships here, so select the associated items. Signed-off-by: Dan McGee --- devel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devel') 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})) -- cgit v1.2.3-54-g00ecf