Fix bug when deleting certain batches

This commit is contained in:
Lance Edgar 2016-08-17 16:51:04 -05:00
parent cf1b9acfb1
commit 3c3aa5f2b1

View file

@ -335,6 +335,7 @@ class BatchMasterView(MasterView):
"""
Delete all data (files etc.) for the batch.
"""
if hasattr(batch, 'delete_data'):
batch.delete_data(self.rattail_config)
del batch.data_rows[:]
super(BatchMasterView, self).delete_instance(batch)