Fixed: Template was loaded twice.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 5 May 2015 21:20:00 +0000 (23:20 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 5 May 2015 21:29:44 +0000 (23:29 +0200)
django_template_backend_genshi/__init__.py

index 17240a21685dad65da3fa1a867b4acb169b22399..3ce795cb38752226433abb4e1955b339cdfca9eb 100644 (file)
@@ -27,7 +27,7 @@ class GenshiEngine(django.template.backends.base.BaseEngine):
     def get_template(self, template_name):
         try:
             template = self.loader.load(template_name)
-            return GenshiTemplateWrapper(self.loader.load(template_name))
+            return GenshiTemplateWrapper(template)
         except genshi.template.loader.TemplateNotFound as exc:
             raise django.template.TemplateDoesNotExist(exc.args)
         except genshi.template.base.TemplateSyntaxError as exc: