attach file contents, not the file object
This commit is contained in:
parent
8a499ab6de
commit
55fccf54fe
|
@ -57,7 +57,7 @@ def send_invoice_email(invoice):
|
|||
formatdict=formatdict,
|
||||
subject=subject,
|
||||
sender='noreply@bornfiber.dk',
|
||||
attachment=invoice.pdf,
|
||||
attachment=invoice.pdf.read(),
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue