Fix bulk delete of batch rows, to set 'removed' flag instead.
This commit is contained in:
parent
8285993fa6
commit
d0bc348ce4
|
@ -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']))
|
||||
|
|
Loading…
Reference in a new issue