Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import html
- rendered = render_to_string("notifications/template_con.html", context)
- string =html.escape(rendered)
- payload ={
- "to": ",".join(emails),
- "subject": "Nuevo contrato ID:{}".format(instance.id),
- "body": "{}".format(string)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement