From 29da7171ad2de6ea5b38d1d4cad3e183680a1a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 23 Jul 2018 14:59:51 +0200 Subject: [PATCH] misc: fix order of templates locations (#25426) --- wcs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/utils.py b/wcs/utils.py index bb04c199..8317a87a 100644 --- a/wcs/utils.py +++ b/wcs/utils.py @@ -36,8 +36,8 @@ class TemplateLoader(django.template.loaders.filesystem.Loader): 'templates', 'variants', theme)) template_dirs.append(os.path.join(get_publisher().app_dir, 'theme', 'templates', 'variants', theme)) - template_dirs.append(os.path.join(get_publisher().app_dir, 'theme', 'templates')) template_dirs.append(os.path.join(get_publisher().app_dir, 'templates')) + template_dirs.append(os.path.join(get_publisher().app_dir, 'theme', 'templates')) current_theme = get_cfg('branding', {}).get('theme', 'default') theme_directory = get_theme_directory(current_theme) -- 2.18.0