Skip to content

Commit

Permalink
theme check using context to avoid TemplateSyntaxError
Browse files Browse the repository at this point in the history
  • Loading branch information
clavay authored and trombastic committed Feb 16, 2024
1 parent dafc0f4 commit ef9f132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscada/hmi/models.py
Expand Up @@ -224,7 +224,7 @@ def check_all_themes(self):
# Delete theme with missing template file
for theme in Theme.objects.all():
try:
get_template(theme.view_filename + ".html").render()
get_template(theme.view_filename + ".html").render({"base_html":"base"})
get_template(theme.base_filename + ".html").render()
except TemplateDoesNotExist:
theme.delete()
Expand Down

0 comments on commit ef9f132

Please sign in to comment.