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