From 5f04788021a5095f6f33d2ed2d67698e52a83abf Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Sat, 13 Oct 2018 15:47:03 +0200 Subject: [PATCH] Empty register_with_renderer method for BasePlugin. --- content_plugins/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content_plugins/base.py b/content_plugins/base.py index a92f93d..e9204e8 100644 --- a/content_plugins/base.py +++ b/content_plugins/base.py @@ -21,7 +21,6 @@ if USE_TRANSLATABLE_FIELDS: from .fields import TranslatableCleansedRichTextField -# TODO Rename to PluginBase class BasePlugin(models.Model): admin_inline_baseclass = ContentInlineBase @@ -30,6 +29,10 @@ class BasePlugin(models.Model): verbose_name = _("plugin") verbose_name_plural = _("plugins") + @classmethod + def register_with_renderer(cls, renderer): + pass + def __str__(self): return "{} ({})".format(self._meta.verbose_name, self.pk)