diff mbox

[Branch,~linaro-validation/lava-dashboard/trunk] Rev 319: make sorting by column work on the test runs in bundle view

Message ID 20120614055210.29783.17227.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson June 14, 2012, 5:52 a.m. UTC
------------------------------------------------------------
revno: 319
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Thu 2012-06-14 17:50:23 +1200
message:
  make sorting by column work on the test runs in bundle view
modified:
  dashboard_app/views.py


--
lp:lava-dashboard
https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk

You are subscribed to branch lp:lava-dashboard.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'dashboard_app/views.py'
--- dashboard_app/views.py	2012-05-03 14:39:17 +0000
+++ dashboard_app/views.py	2012-06-14 05:50:23 +0000
@@ -328,10 +328,12 @@ 
         )
 
     uploaded_on = TemplateColumn(
-        '{{ record.bundle.uploaded_on|date:"Y-m-d H:i:s" }}')
+        '{{ record.bundle.uploaded_on|date:"Y-m-d H:i:s" }}',
+        accessor='bundle__uploaded_on')
 
     analyzed_on = TemplateColumn(
-        '{{ record.analyzer_assigned_date|date:"Y-m-d H:i:s" }}')
+        '{{ record.analyzer_assigned_date|date:"Y-m-d H:i:s" }}',
+        accessor='analyzer_assigned_date')
 
     def get_queryset(self, bundle_stream):
         return TestRun.objects.filter(