diff --git a/questionnaire/templatetags/landings.py b/questionnaire/templatetags/landings.py index e2d2aef..4beb4a1 100644 --- a/questionnaire/templatetags/landings.py +++ b/questionnaire/templatetags/landings.py @@ -1,17 +1,14 @@ import django.template -from django.template.engine import Engine - +from django.template import Template register = django.template.Library() -engine = Engine.get_default() - @register.simple_tag(takes_context=True) def render_with_landing(context, text): if not context.has_key('landing_object') and context.has_key('runinfo'): landing = context['runinfo'].landing context['landing_object'] = landing.content_object if landing else '' if text: - template = engine.from_string(text) + template = Template(text) return template.render(context) else: