finance email

remotes/origin/yandex_rebiling
Andrey 8 years ago
parent 548645fb7f
commit a4a1f0171f
  1. 2
      finance/views.py

@ -176,7 +176,7 @@ class InvoiceDetailView(APIView):
html_content = html.render(context) html_content = html.render(context)
msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru']) msg = EmailMultiAlternatives(subject, text_content, [to], bcc=['dmitry.dolya@skillbox.ru'])
msg.attach_alternative(html_content, "text/html") # msg.attach_alternative(html_content, "text/html")
msg.send() msg.send()
invoice.save() invoice.save()

Loading…
Cancel
Save