From 4c2f395f73a970c302682ad76913b6bb38f70568 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Thu, 16 Dec 2010 16:59:02 -0500 Subject: [PATCH] Minor correction to embed template tag: updating the context adds an additional context layer, which means the explicitly pushed layer was never popped. --- templatetags/embed.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templatetags/embed.py b/templatetags/embed.py index dba58d1..db5cea5 100644 --- a/templatetags/embed.py +++ b/templatetags/embed.py @@ -215,10 +215,8 @@ class ConstantEmbedNode(template.Node): context.push() context['embedded'] = instance - kwargs = {} for k, v in self.kwargs.items(): - kwargs[k] = v.resolve(context) - context.update(kwargs) + context[k] = v.resolve(context) t_rendered = t.render(context) context.pop() self.mark_rendered_for(context) -- 2.20.1