diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 347: "if queryset:" triggers evaluation of the queryset, so do not do that...

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

Commit Message

Michael-Doyle Hudson Feb. 15, 2012, 11:34 p.m. UTC
------------------------------------------------------------
revno: 347
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Thu 2012-02-16 12:32:25 +1300
message:
  "if queryset:" triggers evaluation of the queryset, so do not do that...
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-10 19:47:56 +0000
+++ lava/utils/data_tables/backends.py	2012-02-15 23:32:25 +0000
@@ -98,7 +98,7 @@ 
         self.queryset_cb = queryset_cb
         self.columns = columns
         self.searching_columns = searching_columns
-        if not queryset and not queryset_cb:
+        if queryset is None and queryset_cb is None:
             raise ImproperlyConfigured(
                 "QuerySetBackend requires either queryset or queryset_cb")
         if not columns: