diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-23 18:29:22 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 18:29:22 +0100 |
commit | f583d05d84d48d1fd78f2472adb6106383af6f45 (patch) | |
tree | 8b8ffdfe58c87e8d24592cf5dcb512e749e91b60 | |
parent | 2ccedba2b55994fb2ef4dc17c23592bd06aed1b5 (diff) | |
download | archweb-f583d05d84d48d1fd78f2472adb6106383af6f45.tar.gz archweb-f583d05d84d48d1fd78f2472adb6106383af6f45.tar.xz |
Use select_related() on group details page
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 4101c53..d393e69 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 = { |