mirror of
https://github.com/pretix/pretix.git
synced 2026-08-26 13:14:40 +00:00
Fixed that has_variations checkbox was required
This commit is contained in:
@@ -104,7 +104,8 @@ class ItemFormGeneral(I18nModelForm):
|
|||||||
class ItemCreateForm(ItemFormGeneral):
|
class ItemCreateForm(ItemFormGeneral):
|
||||||
has_variations = forms.BooleanField(label=_('The product should exist in multiple variations'),
|
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. '
|
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):
|
def save(self, *args, **kwargs):
|
||||||
instance = super().save(*args, **kwargs)
|
instance = super().save(*args, **kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user