diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index 8261eba0..b854fb83 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -895,9 +895,10 @@ class BatchRowGrid(BaseGrid): def bulk_delete(self): """ - Delete all rows matching the current row grid view query. + "Delete" all rows matching the current row grid view query. This sets + the ``removed`` flag on the rows but does not truly delete them. """ - self.query().delete(synchronize_session=False) + self.query().update({'removed': True}, synchronize_session=False) return HTTPFound(location=self.request.route_url( '{0}.view'.format(self.route_prefix), uuid=self.request.matchdict['uuid']))