From d0340044d3855151211b6f9197963c52068d7058 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 22 Oct 2019 17:58:51 +0200 Subject: [PATCH] Order transition: Deal with empty cancellation fee --- src/pretix/control/forms/orders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/forms/orders.py b/src/pretix/control/forms/orders.py index 734a46b96..32cfdd28c 100644 --- a/src/pretix/control/forms/orders.py +++ b/src/pretix/control/forms/orders.py @@ -107,7 +107,7 @@ class CancelForm(ConfirmPaymentForm): del self.fields['cancellation_fee'] def clean_cancellation_fee(self): - val = self.cleaned_data['cancellation_fee'] + val = self.cleaned_data['cancellation_fee'] or Decimal('0.00') if val > self.instance.payment_refund_sum: raise ValidationError(_('The cancellation fee cannot be higher than the payment credit of this order.')) return val