diff --git a/content_plugins/base.py b/content_plugins/base.py index 47c0190..4b3ab98 100644 --- a/content_plugins/base.py +++ b/content_plugins/base.py @@ -52,7 +52,11 @@ class BasePlugin(models.Model): renderer.register_template_renderer(cls, cls.get_template, cls.get_context_data) def get_template_names(self): - return [getattr(self, 'template_name', None)] + t = getattr(self, 'template_name', None) + if t: + return [t] + else: + return [] def get_template(self): """