Fix changing customer of an order to none

This commit is contained in:
Raphael Michel
2021-05-21 17:29:57 +02:00
parent 1439594806
commit 545628e5cd

View File

@@ -1841,7 +1841,7 @@ class OrderContactChange(OrderView):
'pretix.event.order.customer.changed',
data={
'old_customer': old_customer,
'new_customer': self.form.cleaned_data['customer'],
'new_customer': self.form.cleaned_data.get('customer'),
},
user=self.request.user,
)