workaround for multiple template engines
parent
425f427a85
commit
fed891f6a7
|
@ -8,7 +8,7 @@ def render_with_landing(context, text):
|
||||||
landing = context['runinfo'].landing
|
landing = context['runinfo'].landing
|
||||||
context['landing_object'] = landing.content_object if landing else ''
|
context['landing_object'] = landing.content_object if landing else ''
|
||||||
if text:
|
if text:
|
||||||
template = Template(text)
|
template = Template(text, using='DjangoTemplates')
|
||||||
return template.render(context)
|
return template.render(context)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue