Fixed: Template was loaded twice.
[toast/alpenzoo.git] / 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: