diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index b854fb83..b2cc91b5 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -812,8 +812,8 @@ class BatchRowGrid(BaseGrid): def modify_query(self, q): q = super(BatchRowGrid, self).modify_query(q) - q = q.filter_by(batch=self.current_batch()) - q = q.filter_by(removed=False) + q = q.filter(self.row_class.batch == self.current_batch()) + q = q.filter(self.row_class.removed == False) return q def join_map(self):