From 34ec11ecfae8b941effb6f635f2d4132a1e0a209 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 13 Feb 2020 09:21:23 +0100 Subject: [PATCH] Fix KeyError for form validation --- src/pretix/control/forms/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/forms/item.py b/src/pretix/control/forms/item.py index 1c3fdad820..f34d8f8af0 100644 --- a/src/pretix/control/forms/item.py +++ b/src/pretix/control/forms/item.py @@ -723,7 +723,7 @@ class ItemBundleForm(I18nModelForm): def clean(self): d = super().clean() - if not self.cleaned_data['designated_price']: + if not self.cleaned_data.get('designated_price'): d['designated_price'] = Decimal('0.00') self.instance.designated_price = Decimal('0.00')