forked from CGM_Public/pretix_original
Allow to disable self-choice seating
This commit is contained in:
@@ -399,7 +399,10 @@ class OrderPositionChangeForm(forms.Form):
|
||||
self.fields['tax_rule'].queryset = instance.event.tax_rules.all()
|
||||
self.fields['tax_rule'].label_from_instance = self.taxrule_label_from_instance
|
||||
|
||||
if not instance.seat:
|
||||
if not instance.seat and not (
|
||||
not instance.event.settings.seating_choice and
|
||||
instance.item.seat_category_mappings.filter(subevent=instance.subevent).exists()
|
||||
):
|
||||
del self.fields['seat']
|
||||
|
||||
choices = [
|
||||
|
||||
Reference in New Issue
Block a user