mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Attach ticekts to "order approved" email if possible
This commit is contained in:
@@ -315,6 +315,7 @@ def approve_order(order, user=None, send_mail: bool=True, auth=None, force=False
|
||||
order.send_mail(
|
||||
email_subject, email_template, email_context,
|
||||
'pretix.event.order.email.order_approved', user,
|
||||
attach_tickets=True,
|
||||
invoices=[invoice] if invoice and order.event.settings.invoice_email_attachment else []
|
||||
)
|
||||
except SendMailException:
|
||||
|
||||
Reference in New Issue
Block a user