summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-17 15:11:23 +0200
committerDan McGee <dan@archlinux.org>2011-08-17 15:11:23 +0200
commit61311701a51cc5b060d5baa56536805aa271f9d6 (patch)
tree4ae429b25cf2fb3155b315d87adb5ef9c91fc856
parenta489f355ec52dd54946bc7476615aa7cab9e384c (diff)
downloadarchweb-61311701a51cc5b060d5baa56536805aa271f9d6.tar.gz
archweb-61311701a51cc5b060d5baa56536805aa271f9d6.tar.xz
Add architecture to releng results listing
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 d90a5b9..796fc04 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 b3ae025..a343257 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 %}