Fix bug when deleting certain batches
This commit is contained in:
parent
cf1b9acfb1
commit
3c3aa5f2b1
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue