mirror of
https://github.com/pretix/pretix.git
synced 2026-06-12 01:35:16 +00:00
Add Reusable Media Exchange to Checkin API
This commit is contained in:
committed by
Raphael Michel
parent
93469d33e5
commit
744eab1765
@@ -217,6 +217,19 @@ DEFAULTS = {
|
||||
"later.")
|
||||
)
|
||||
},
|
||||
'reusable_media_usage_enforced': {
|
||||
'default': 'False',
|
||||
'type': bool,
|
||||
'form_class': forms.BooleanField,
|
||||
'serializer_class': serializers.BooleanField,
|
||||
'form_kwargs': dict(
|
||||
label=_("Enforce the usage of issued re-usable media for check-in"),
|
||||
help_text=_("If enabled, a ticket barcode will not be accepted anymore, if a re-usable media has been "
|
||||
"created and linked to a ticket. Keeping this option turned off will treat the re-usable "
|
||||
"medium and ticket as equals."),
|
||||
widget=forms.CheckboxInput(attrs={'data-display-dependency': '#id_settings-reusable_media_active'}),
|
||||
)
|
||||
},
|
||||
'reusable_media_type_barcode': {
|
||||
'default': 'False',
|
||||
'type': bool,
|
||||
|
||||
Reference in New Issue
Block a user