diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-17 08:11:23 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-17 08:11:23 -0500 |
commit | 61311701a51cc5b060d5baa56536805aa271f9d6 (patch) | |
tree | 4ae429b25cf2fb3155b315d87adb5ef9c91fc856 /releng/views.py | |
parent | a489f355ec52dd54946bc7476615aa7cab9e384c (diff) |
Add architecture to releng results listing
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng/views.py')
-rw-r--r-- | releng/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/releng/views.py b/releng/views.py index d90a5b9a..796fc044 100644 --- a/releng/views.py +++ b/releng/views.py @@ -115,7 +115,7 @@ def test_results_overview(request): def test_results_iso(request, iso_id): iso = get_object_or_404(Iso, pk=iso_id) - test_list = iso.test_set.all() + test_list = iso.test_set.select_related() context = { 'iso_name': iso.name, 'test_list': test_list @@ -127,7 +127,8 @@ def test_results_for(request, option, value): raise Http404 option_model = getattr(Test, option).field.rel.to real_value = get_object_or_404(option_model, pk=value) - test_list = real_value.test_set.order_by('-iso__name', '-pk') + test_list = real_value.test_set.select_related().order_by( + '-iso__name', '-pk') context = { 'option': option, 'value': real_value, |