def get_data(self): marker = self.request.GET.get( WorkOrderTempTypeTable._meta.pagination_param, None) args = { 'marker': marker, 'paginate': True, 'filters': '', 'sort_dir': 'desc' } objects, self._prev, self._more = utils.paginate( self.request, WorkOrderTypeManager.list(self.request), **args) return objects
def get_data(self): search_opts = {} filter = self.get_server_filter_info(self.request) if filter['value'] and filter['field']: search_opts = {filter['field']: filter['value']} marker = self.request.GET.get( WorkOrderFieldTable._meta.pagination_param, None) args = { 'marker': marker, 'paginate': True, 'filters': '', 'sort_dir': 'desc' } objects, self._prev, self._more = utils.paginate( self.request, WorkOrderFieldManager.list(self.request, search_opts=search_opts), **args) return objects