Fix KeyError in sendmail history

This commit is contained in:
Raphael Michel
2017-02-08 12:06:11 +01:00
parent 824ca54478
commit e3e8a162bd

View File

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