mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Email context: Auto-set position_or_address if position is set
This commit is contained in:
@@ -251,6 +251,8 @@ def get_email_context(**kwargs):
|
||||
from pretix.base.models import InvoiceAddress
|
||||
|
||||
event = kwargs['event']
|
||||
if 'position' in kwargs:
|
||||
kwargs.setdefault("position_or_address", kwargs['position'])
|
||||
if 'order' in kwargs:
|
||||
try:
|
||||
kwargs['invoice_address'] = kwargs['order'].invoice_address
|
||||
|
||||
Reference in New Issue
Block a user