mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Clarify meaning of cancelled for scheduled mails
This commit is contained in:
@@ -323,7 +323,6 @@ class Order(LockModel, LoggedModel):
|
||||
)
|
||||
|
||||
STATUS_FILTERS = (
|
||||
('', _('All orders')),
|
||||
(_('Valid orders'), (
|
||||
(STATUS_PAID, _('Paid (or canceled with paid fee)')),
|
||||
(STATUS_PAID + 'v', _('Paid or confirmed')),
|
||||
|
||||
@@ -219,7 +219,7 @@ class OrderFilterForm(FilterForm):
|
||||
)
|
||||
status = forms.ChoiceField(
|
||||
label=_('Order status'),
|
||||
choices=Order.STATUS_FILTERS,
|
||||
choices=[('', _('All orders')), *Order.STATUS_FILTERS],
|
||||
required=False,
|
||||
)
|
||||
|
||||
|
||||
@@ -376,7 +376,7 @@ class RuleForm(FormPlaceholderMixin, I18nModelForm):
|
||||
self._set_field_placeholders('subject', ['event', 'order', 'event_or_subevent'])
|
||||
self._set_field_placeholders('template', ['event', 'order', 'event_or_subevent'], rich=True)
|
||||
|
||||
choices = [(e, l) for e, l in Order.STATUS_CHOICE if e != 'n']
|
||||
choices = [(e, l) for e, l in Order.STATUS_CHOICE if e != 'n' and e != 'c']
|
||||
choices.insert(0, ('n__valid_if_pending', _('payment pending but already confirmed')))
|
||||
choices.insert(0, ('n__not_pending_approval_and_not_valid_if_pending',
|
||||
_('payment pending (except unapproved or already confirmed)')))
|
||||
@@ -385,6 +385,7 @@ class RuleForm(FormPlaceholderMixin, I18nModelForm):
|
||||
choices.append(
|
||||
('n__pending_overdue', _('pending with payment overdue'))
|
||||
)
|
||||
choices.append(('c', _('Canceled (fully)')))
|
||||
self.fields['restrict_to_status'] = forms.MultipleChoiceField(
|
||||
label=pgettext_lazy('sendmail_from', 'Restrict to orders with status'),
|
||||
widget=forms.CheckboxSelectMultiple(
|
||||
|
||||
Reference in New Issue
Block a user