From bd557ee719698c5eb4cdc8fd5aecfff24be7fc93 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 12 Mar 2016 11:04:22 +0100 Subject: [PATCH] Fixed that has_variations checkbox was required --- src/pretix/control/forms/item.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/forms/item.py b/src/pretix/control/forms/item.py index ce6a50886f..7d8cdbe4b9 100644 --- a/src/pretix/control/forms/item.py +++ b/src/pretix/control/forms/item.py @@ -104,7 +104,8 @@ class ItemFormGeneral(I18nModelForm): class ItemCreateForm(ItemFormGeneral): has_variations = forms.BooleanField(label=_('The product should exist in multiple variations'), help_text=_('Select this option e.g. for t-shirts that come in multiple sizes. ' - 'You can select the variations in the next step.')) + 'You can select the variations in the next step.'), + required=False) def save(self, *args, **kwargs): instance = super().save(*args, **kwargs)