Genshi wants the context as keyword arguments.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 5 May 2015 19:41:23 +0000 (21:41 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 5 May 2015 21:29:41 +0000 (23:29 +0200)
django_template_backend_genshi/__init__.py

index c9d365573a7e54d918102d2662e55ffa99580ec8..17240a21685dad65da3fa1a867b4acb169b22399 100644 (file)
@@ -45,5 +45,5 @@ class GenshiTemplateWrapper(object):
             context['request'] = request
             context['csrf_input'] = csrf_input_lazy(request)
             context['csrf_token'] = csrf_token_lazy(request)
             context['request'] = request
             context['csrf_input'] = csrf_input_lazy(request)
             context['csrf_token'] = csrf_token_lazy(request)
-        stream = self.template.generate(dict=context)
+        stream = self.template.generate(**context)
         return stream.render()
         return stream.render()