Apply suggestions from code review

Co-authored-by: robbi5 <maxi@richt.name>
This commit is contained in:
Martin Gross
2026-04-27 16:28:36 +02:00
committed by GitHub
parent bdbafe4cf1
commit f052015881
3 changed files with 3 additions and 3 deletions

View File

@@ -1135,7 +1135,7 @@ def perform_checkin(op: OrderPosition, clist: CheckinList, given_answers: dict,
)
elif not reusable_media and linked_media.exists():
raise CheckInError(
_('This ticket has already been exchanged - use the reusable media instead.'),
_('This ticket has already been exchanged - use the reusable medium instead.'),
'already_exchanged',
)

View File

@@ -224,7 +224,7 @@ DEFAULTS = {
'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 "
help_text=_("If enabled, a ticket barcode will not be accepted anymore, if a re-usable medium 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'}),