Fix bulk delete of batch rows, to set 'removed' flag instead.

This commit is contained in:
Lance Edgar 2015-03-19 02:02:07 -05:00
parent 8285993fa6
commit d0bc348ce4

View file

@ -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']))