[fix #1503] override_template cache error (#1505)

* Closes #1503 and fixes override_template
This commit is contained in:
Frank
2020-06-23 02:23:02 +08:00
committed by GitHub
parent aad3d21568
commit 241467c4b3

View File

@@ -110,7 +110,7 @@ class ThemeLoader(FileSystemLoader):
def get_source(self, environment, template): def get_source(self, environment, template):
# Check if the template has been overriden # Check if the template has been overriden
if template in self.overriden_templates: if template in self.overriden_templates:
return self.overriden_templates[template], template, True return self.overriden_templates[template], template, lambda: True
# Check if the template requested is for the admin panel # Check if the template requested is for the admin panel
if template.startswith("admin/"): if template.startswith("admin/"):