diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 351: another "if queryset:" that was triggering accidental queryset evaluation

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

Commit Message

Michael-Doyle Hudson March 1, 2012, 4:41 a.m. UTC
------------------------------------------------------------
revno: 351
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Thu 2012-03-01 17:39:00 +1300
message:
  another "if queryset:" that was triggering accidental queryset evaluation
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-02-15 23:32:25 +0000
+++ lava/utils/data_tables/backends.py	2012-03-01 04:39:00 +0000
@@ -109,7 +109,7 @@ 
         # Get the basic response structure
         response = super(QuerySetBackend, self).process(query)
         # Get a queryset object
-        if self.queryset:
+        if self.queryset is not None:
             queryset = self.queryset
         else:
             queryset = self.queryset_cb(query.request)