From a2ad2e1ebf5404825cf5d0552f7a3c4622c30065 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Thu, 22 Mar 2018 11:18:33 +0100 Subject: [PATCH] Fix. --- content_plugins/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content_plugins/base.py b/content_plugins/base.py index 96d4e7e..e795b4a 100644 --- a/content_plugins/base.py +++ b/content_plugins/base.py @@ -52,7 +52,7 @@ 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) + return [getattr(self, 'template_name', None)] def get_template(self): """