Improve logging of gift card changes and show logs

This commit is contained in:
Raphael Michel
2020-01-02 17:39:31 +01:00
parent ff98ae3200
commit 76359c859f
4 changed files with 96 additions and 77 deletions

View File

@@ -325,6 +325,8 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs):
'pretix.device.initialized': _('The device has been initialized.'),
'pretix.device.keyroll': _('The access token of the device has been regenerated.'),
'pretix.device.updated': _('The device has notified the server of an hardware or software update.'),
'pretix.giftcards.created': _('The gift card has been created.'),
'pretix.giftcards.transaction.manual': _('A manual transaction has been performed.'),
}
data = json.loads(logentry.data)