mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix wrong attribute name
This commit is contained in:
@@ -261,7 +261,7 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
|
|||||||
for inv in invoices:
|
for inv in invoices:
|
||||||
if inv.file:
|
if inv.file:
|
||||||
try:
|
try:
|
||||||
with language(inv.order.language):
|
with language(inv.order.locale):
|
||||||
email.attach(
|
email.attach(
|
||||||
pgettext('invoice', 'Invoice {num}').format(num=inv.number).replace(' ', '_') + '.pdf',
|
pgettext('invoice', 'Invoice {num}').format(num=inv.number).replace(' ', '_') + '.pdf',
|
||||||
inv.file.file.read(),
|
inv.file.file.read(),
|
||||||
|
|||||||
Reference in New Issue
Block a user