Allow to define ticket validity through a product (#3105)

This commit is contained in:
Raphael Michel
2023-02-13 14:46:52 +01:00
committed by GitHub
parent fdadda9910
commit f63408504e
24 changed files with 1025 additions and 167 deletions

View File

@@ -61,6 +61,7 @@ class BadgeLayoutChoiceField(forms.ModelChoiceField):
class BadgeItemForm(forms.ModelForm):
is_layouts = True
layout = BadgeLayoutChoiceField(queryset=BadgeLayout.objects.none())
class Meta:

View File

@@ -34,6 +34,8 @@ class TicketLayoutForm(forms.ModelForm):
class TicketLayoutItemForm(forms.ModelForm):
is_layouts = True
class Meta:
model = TicketLayoutItem
fields = ('layout',)