fix Batch.rowcount when deleting multiple rows

This commit is contained in:
Lance Edgar 2012-09-06 11:42:27 -07:00
parent 0a85bc2ba6
commit 123fa375ea

View file

@ -132,6 +132,7 @@ def batch_rows_delete(request):
rows = grid.make_query()
count = rows.count()
rows.delete(synchronize_session=False)
grid.batch.rowcount -= count
request.session.flash("Deleted %d rows from batch." % count)
return HTTPFound(location=request.route_url('batch.rows', uuid=grid.batch.uuid))