Add event selection endpoint (#1827)

* Add event selection endpoint

* Minor fixes

* Add filter by gate
This commit is contained in:
Raphael Michel
2020-10-24 19:20:07 +02:00
committed by GitHub
parent 3865063b12
commit 987597b298
12 changed files with 515 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 3.0.10 on 2020-10-24 15:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0168_auto_20201023_1447'),
]
operations = [
migrations.AddField(
model_name='checkinlist',
name='gates',
field=models.ManyToManyField(to='pretixbase.Gate'),
),
]

View File

@@ -21,6 +21,11 @@ class CheckinList(LoggedModel):
default=False,
help_text=_('With this option, people will be able to check in even if the '
'order have not been paid.'))
gates = models.ManyToManyField(
'Gate', verbose_name=_("Gates"), blank=True,
help_text=_("Does not have any effect for the validation of tickets, only for the automatic configuration of "
"check-in devices.")
)
allow_entry_after_exit = models.BooleanField(
verbose_name=_('Allow re-entering after an exit scan'),
default=True