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

This reverts merge request !15
This commit is contained in:
Roberto Rosario
2017-09-07 05:12:21 +00:00
parent 273f94e9b6
commit 63a7bb0b86

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