Show emails to order positions in email history

This commit is contained in:
Raphael Michel
2020-12-02 16:14:13 +01:00
parent 99c3981e2d
commit a452bf816c
2 changed files with 3 additions and 1 deletions

View File

@@ -305,6 +305,7 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs):
'pretix.event.order.email.attachments.skipped': _('The email has been sent without attachments since they '
'would have been too large to be likely to arrive.'),
'pretix.event.order.email.custom_sent': _('A custom email has been sent.'),
'pretix.event.order.position.email.custom_sent': _('A custom email has been sent to an attendee.'),
'pretix.event.order.email.download_reminder_sent': _('An email has been sent with a reminder that the ticket '
'is available for download.'),
'pretix.event.order.email.expire_warning_sent': _('An email has been sent with a warning that the order is about '

View File

@@ -1885,7 +1885,8 @@ class OrderEmailHistory(EventPermissionRequiredMixin, OrderViewMixin, ListView):
)
qs = order.all_logentries()
qs = qs.filter(
action_type__contains="order.email"
Q(action_type__contains="order.email") |
Q(action_type__contains="order.position.email")
)
return qs