diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 388: revert misguided "fix"

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

Commit Message

Michael-Doyle Hudson Aug. 18, 2012, 7:07 a.m. UTC
------------------------------------------------------------
revno: 388
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Sat 2012-08-18 12:06:49 +1200
message:
  revert misguided "fix"
modified:
  lava/utils/data_tables/backends.py


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

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

Patch

=== modified file 'lava/utils/data_tables/backends.py'
--- lava/utils/data_tables/backends.py	2012-08-18 00:06:05 +0000
+++ lava/utils/data_tables/backends.py	2012-08-18 00:06:49 +0000
@@ -234,13 +234,11 @@ 
             return queryset
         order_by = []
         for column_index, order in sorting_columns:
-            name, col = self.table.base_columns.items()[column_index]
-            accessor = col.accessor or name
+            col = self.table.columns[column_index]
             order_by.append(
                 "{asc_desc}{column}".format(
                     asc_desc="-" if order == 'desc' else '',
-                    column=accessor.replace('.', '__')))
-        print order_by
+                    column=col.accessor.replace('.', '__')))
         return queryset.order_by(*order_by)
 
     def process(self, query):