Merge branch 'revert-273f94e9' into 'master'

Revert "Merge branch 'fix-context' into 'master'"

See merge request !21
This commit is contained in:
Roberto Rosario
2017-09-07 05:14:35 +00:00

View File

@@ -83,9 +83,10 @@ def render_subtemplate(context, template_name, template_context):
Renders the specified template with the mixed parent and
subtemplate contexts
"""
new_context = Context(context.flatten())
new_context = Context(context)
new_context.update(Context(template_context))
return get_template(template_name).render(new_context.flatten())
return get_template(template_name).render(new_context)
@register.simple_tag