Message ID | 20120215233409.21326.62720.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== 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: