Fix logging language of expiry mails

This commit is contained in:
Raphael Michel
2017-11-06 17:16:58 +01:00
parent 98aa70c9ce
commit 7649fa11d3

View File

@@ -388,9 +388,9 @@ class Order(LoggedModel):
from pretix.base.services.mail import SendMailException, mail, render_mail
recipient = self.email
email_content = render_mail(template, context)[0]
try:
with language(self.locale):
email_content = render_mail(template, context)[0]
mail(
recipient, subject, template, context,
self.event, self.locale, self, headers, sender