Commit 1aab4909 authored by Adrián Ribao's avatar Adrián Ribao
Browse files

fix if not json to load

parent db5792fc
......@@ -67,7 +67,8 @@ class EmailTemplate(models.Model):
context = {
'final_render': True,
if self.context:
c = Context(context)
html = t.render(c)
return html
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment