Improve algorithm for {name} placeholder (#1745)

Co-authored-by: Felix Rindt <felix@rindt.me>
This commit is contained in:
Raphael Michel
2020-08-19 11:30:34 +02:00
committed by GitHub
parent b2357b7e29
commit c94d384e86
3 changed files with 26 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ def send_mails(event: Event, user: int, subject: dict, message: dict, orders: li
try:
ia = o.invoice_address
except InvoiceAddress.DoesNotExist:
ia = InvoiceAddress()
ia = InvoiceAddress(order=o)
if recipients in ('both', 'attendees'):
for p in o.positions.prefetch_related('addons'):