mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Apply suggestions from code review
Co-authored-by: robbi5 <maxi@richt.name>
This commit is contained in:
@@ -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',
|
||||
)
|
||||
|
||||
|
||||
@@ -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'}),
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user