Message ID | 20120920205711.12696.25599.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava/utils/data_tables/tables.py' --- lava/utils/data_tables/tables.py 2012-08-18 00:06:05 +0000 +++ lava/utils/data_tables/tables.py 2012-09-20 20:56:49 +0000 @@ -177,7 +177,10 @@ display_length = self.datatable_opts.get('iDisplayLength', 10) if getattr(self.data, 'list', None) is not None: del self.data.list - self.data.queryset = sorted_queryset[:display_length] + if self.source: + self.data.queryset = sorted_queryset[:display_length] + else: + self.data.queryset = sorted_queryset @property def full_length(self):