Minor correction to embed template tag: updating the context adds an additional conte...
[philo.git] / templatetags / embed.py
index dba58d1..db5cea5 100644 (file)
@@ -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)