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'}),

View File

@@ -85,7 +85,7 @@
<h3 class="nomargin-top">{% trans "Media exchange required" %}</h3>
<p>
{% blocktrans trimmed with media_policy=media_policies|getitem:result.media_policy media_type=media_types|getitem:result.media_type %}
This ticket needs to be exchanged into a <strong>{{ media_type }}</strong> re-usable media.
This ticket needs to be exchanged into a <strong>{{ media_type }}</strong> re-usable medium.
<strong>{{ media_policy }}</strong>.
{% endblocktrans %}
</p>