From b3c9db2b823537d798f696fb8cbc73c2ac433f7b Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Thu, 21 Mar 2019 10:36:24 +0100 Subject: [PATCH] Fix. --- CHANGES | 3 +++ content_plugins/base.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 9c862cd..3ccc237 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +0.3.18 2019-03-21 +- Fix + 0.3.17 2019-03-21 - Prefixed section break plugin base default template name diff --git a/content_plugins/base.py b/content_plugins/base.py index a4087bc..8dcf265 100644 --- a/content_plugins/base.py +++ b/content_plugins/base.py @@ -98,8 +98,8 @@ class TemplateRendererPlugin(BasePlugin): class FilesystemTemplateRendererPlugin(TemplateRendererPlugin): - template_name_prefix = None - template_name = None + template_name_prefix = '' + template_name = '' class Meta: abstract = True @@ -118,7 +118,7 @@ class FilesystemTemplateRendererPlugin(TemplateRendererPlugin): then super's template names, finally prefixed _default.html. """ - if self.template_name is None: + if not self.template_name: raise ImproperlyConfigured( "FilesystemTemplateRendererPlugin requires either a definition of " "'template_name' or an implementation of 'get_template_names()'")