Delete add-ons explicitly

This commit is contained in:
Raphael Michel
2018-11-12 11:11:21 +01:00
parent b053f61001
commit b9534f23f5
2 changed files with 15 additions and 0 deletions

View File

@@ -1024,6 +1024,7 @@ class OrderChangeManager:
'addon_to': opa.addon_to_id,
'old_price': opa.price,
})
opa.delete()
self.order.log_action('pretix.event.order.changed.cancel', user=self.user, auth=self.auth, data={
'position': op.position.pk,
'positionid': op.position.positionid,