Skip to content

Commit

Permalink
Invoices: pass mime type in attachments too
Browse files Browse the repository at this point in the history
  • Loading branch information
julen committed May 1, 2017
1 parent 1f2cd4a commit 015c35c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pootle/apps/reports/models/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ def send_by_email(self, override_to=None, override_bcc=None):
override_to=override_to,
override_bcc=override_bcc).send()

attachments = [file[0] for file in self.files if 'html' not in file[1]]
attachments = [
(file[0], file[1]) # file path, mime type
for file in self.files if 'html' not in file[1]
]
count = 0
count += UserPaymentEmail(self.id, self.conf, ctx,
override_to=override_to,
Expand Down

0 comments on commit 015c35c

Please sign in to comment.