Fix string formatting issue in log message

This commit is contained in:
Raphael Michel
2022-04-12 17:14:43 +02:00
parent 6b7a2e1981
commit e308b38d6f
35 changed files with 35 additions and 35 deletions

View File

@@ -534,7 +534,7 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs):
if logentry.action_type == 'pretix.event.order.canceled':
comment = logentry.parsed_data.get('comment')
if comment:
return _('The order has been canceled (comment: "{}").').format(comment)
return _('The order has been canceled (comment: "{comment}").').format(comment=comment)
else:
return _('The order has been canceled.')