Fix #861 -- Add event name to admin notification email (#862)

This commit is contained in:
Jan Felix Wiebe
2018-04-10 09:36:29 +02:00
committed by Raphael Michel
parent 9dace592c0
commit ecb3c4f4f3

View File

@@ -174,6 +174,7 @@ class ParametrizedOrderNotificationType(NotificationType):
title=self._title.format(order=order, event=logentry.event),
url=order_url
)
n.add_attribute(_('Event'), order.event.name)
n.add_attribute(_('Order code'), order.code)
n.add_attribute(_('Order total'), money_filter(order.total, logentry.event.currency))
n.add_attribute(_('Order date'), date_format(order.datetime, 'SHORT_DATETIME_FORMAT'))