Sendmail: Do not fail to show logs with status "r"

Fix sentry PRETIXEU-S3
This commit is contained in:
Raphael Michel
2019-02-04 09:10:19 +01:00
parent 9034a98df9
commit 10c86869ea

View File

@@ -153,6 +153,7 @@ class EmailHistoryView(EventPermissionRequiredMixin, ListView):
status = dict(Order.STATUS_CHOICE)
status['overdue'] = _('pending with payment overdue')
status['r'] = status['c']
for log in ctx['logs']:
log.pdata = log.parsed_data
log.pdata['locales'] = {}