Browse Source

adequação de código na chamada do render de templates

pull/2446/head
Leandro Roberto 6 years ago
parent
commit
b4666807ab
  1. 2
      sapl/base/email_utils.py

2
sapl/base/email_utils.py

@ -18,7 +18,7 @@ def load_email_templates(templates, context={}):
emails = []
for t in templates:
tpl = loader.get_template(t)
email = tpl.render(Context(context))
email = tpl.render(context)
if t.endswith(".html"):
email = email.replace('\n', '').replace('\r', '')
emails.append(email)

Loading…
Cancel
Save