mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +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
|
from pretix.base.models import InvoiceAddress
|
||||||
|
|
||||||
event = kwargs['event']
|
event = kwargs['event']
|
||||||
|
if 'position' in kwargs:
|
||||||
|
kwargs.setdefault("position_or_address", kwargs['position'])
|
||||||
if 'order' in kwargs:
|
if 'order' in kwargs:
|
||||||
try:
|
try:
|
||||||
kwargs['invoice_address'] = kwargs['order'].invoice_address
|
kwargs['invoice_address'] = kwargs['order'].invoice_address
|
||||||
|
|||||||
Reference in New Issue
Block a user