mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Only mention an order in the mail if one is associated (#592)
This commit is contained in:
committed by
Raphael Michel
parent
349e306d38
commit
a213ca746c
@@ -116,10 +116,10 @@ def mail(email: str, subject: str, template: Union[str, LazyI18nString],
|
|||||||
body_plain += signature
|
body_plain += signature
|
||||||
body_plain += "\r\n\r\n-- \r\n"
|
body_plain += "\r\n\r\n-- \r\n"
|
||||||
|
|
||||||
body_plain += _(
|
|
||||||
"You are receiving this email because you placed an order for {event}."
|
|
||||||
).format(event=event.name)
|
|
||||||
if order:
|
if order:
|
||||||
|
body_plain += _(
|
||||||
|
"You are receiving this email because you placed an order for {event}."
|
||||||
|
).format(event=event.name)
|
||||||
htmlctx['order'] = order
|
htmlctx['order'] = order
|
||||||
body_plain += "\r\n"
|
body_plain += "\r\n"
|
||||||
body_plain += _(
|
body_plain += _(
|
||||||
|
|||||||
Reference in New Issue
Block a user