misc: also look for templates in theme variants directory (#18051)

This commit is contained in:
Frédéric Péters 2017-08-18 11:08:50 +02:00
parent 016bfc78e9
commit 683315c0be
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class TemplateLoader(django.template.loaders.filesystem.Loader):
if theme:
template_dirs.append(os.path.join(get_publisher().app_dir,
'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'))