diff --git a/src/wuttjamaican/batch.py b/src/wuttjamaican/batch.py index 98e8aa9..4d18b9c 100644 --- a/src/wuttjamaican/batch.py +++ b/src/wuttjamaican/batch.py @@ -328,6 +328,8 @@ class BatchHandler(GenericHandler): deletes the row. """ session = self.app.get_session(row) + batch = row.batch + batch.rows.remove(row) session.delete(row) def refresh_batch_status(self, batch):