mirror of
https://github.com/pretix/pretix.git
synced 2026-05-12 16:24:00 +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():
|
elif not reusable_media and linked_media.exists():
|
||||||
raise CheckInError(
|
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',
|
'already_exchanged',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ DEFAULTS = {
|
|||||||
'serializer_class': serializers.BooleanField,
|
'serializer_class': serializers.BooleanField,
|
||||||
'form_kwargs': dict(
|
'form_kwargs': dict(
|
||||||
label=_("Enforce the usage of issued re-usable media for check-in"),
|
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 "
|
"created and linked to a ticket. Keeping this option turned off will treat the re-usable "
|
||||||
"medium and ticket as equals."),
|
"medium and ticket as equals."),
|
||||||
widget=forms.CheckboxInput(attrs={'data-display-dependency': '#id_settings-reusable_media_active'}),
|
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>
|
<h3 class="nomargin-top">{% trans "Media exchange required" %}</h3>
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed with media_policy=media_policies|getitem:result.media_policy media_type=media_types|getitem:result.media_type %}
|
{% 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>.
|
<strong>{{ media_policy }}</strong>.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user