summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--releng/views.py5
-rw-r--r--templates/releng/result_list.html4
2 files changed, 6 insertions, 3 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,
diff --git a/templates/releng/result_list.html b/templates/releng/result_list.html
index b3ae025b..a343257e 100644
--- a/templates/releng/result_list.html
+++ b/templates/releng/result_list.html
@@ -12,9 +12,10 @@
<table id="releng-result" class="results">
<thead>
<tr>
- <th>Iso</th>
+ <th>ISO</th>
<th>Submitted By</th>
<th>Date Submitted</th>
+ <th>Architecture</th>
<th>Success</th>
</tr>
</thead>
@@ -24,6 +25,7 @@
<td>{{ test.iso.name }}</td>
<td>{{ test.user_name }}</td>
<td>{{ test.created|date }}</td>
+ <td>{{ test.architecture }}</td>
<td>{{ test.success|yesno }}</td>
</tr>
{% endfor %}