summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-23 12:29:22 -0500
committerDan McGee <dan@archlinux.org>2011-03-23 12:29:22 -0500
commitf583d05d84d48d1fd78f2472adb6106383af6f45 (patch)
tree8b8ffdfe58c87e8d24592cf5dcb512e749e91b60 /packages/views.py
parent2ccedba2b55994fb2ef4dc17c23592bd06aed1b5 (diff)
Use select_related() on group details page
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 4101c538..d393e694 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -107,7 +107,7 @@ def group_details(request, arch, name):
arches = [ arch ]
arches.extend(Arch.objects.filter(agnostic=True))
pkgs = Package.objects.filter(groups__name=name, arch__in=arches)
- pkgs = pkgs.order_by('pkgname')
+ pkgs = pkgs.select_related('arch', 'repo').order_by('pkgname')
if len(pkgs) == 0:
raise Http404
context = {