diff --git a/mayan/apps/common/templatetags/common_tags.py b/mayan/apps/common/templatetags/common_tags.py index c1a35a6177..063179656b 100644 --- a/mayan/apps/common/templatetags/common_tags.py +++ b/mayan/apps/common/templatetags/common_tags.py @@ -84,9 +84,9 @@ def render_subtemplate(context, template_name, template_context): subtemplate contexts """ - new_context = Context(context) + new_context = Context(context.flatten()) new_context.update(Context(template_context)) - return get_template(template_name).render(new_context) + return get_template(template_name).render(new_context.flatten()) @register.simple_tag