Log confirm message consent

This commit is contained in:
Raphael Michel
2018-05-04 15:31:56 +02:00
parent 8b4453f32d
commit 9fab20ca6c
3 changed files with 12 additions and 1 deletions

View File

@@ -510,6 +510,8 @@ def _create_order(event: Event, email: str, positions: List[CartPosition], now_d
OrderPosition.transform_cart_positions(positions, order)
order.log_action('pretix.event.order.placed')
for msg in meta_info.get('confirm_messages', []):
order.log_action('pretix.event.order.consent', data={'msg': msg})
order_placed.send(event, order=order)
return order