diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-23 12:29:22 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 12:29:22 -0500 |
commit | f583d05d84d48d1fd78f2472adb6106383af6f45 (patch) | |
tree | 8b8ffdfe58c87e8d24592cf5dcb512e749e91b60 /packages | |
parent | 2ccedba2b55994fb2ef4dc17c23592bd06aed1b5 (diff) |
Use select_related() on group details page
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views.py | 2 |
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 = { |