From d0bc348ce4a8ead0de4449afb8eb3b4bcc7f206e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 19 Mar 2015 02:02:07 -0500 Subject: [PATCH] Fix bulk delete of batch rows, to set 'removed' flag instead. --- tailbone/views/batch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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']))