From 0cebd9b6d25262a9b6ca6c36ad1e42d46faaa98e Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Thu, 25 Apr 2019 14:59:22 +0200 Subject: [PATCH] Really renamed SectionBase to SectionBreakBase, leaving old name as alias. --- content_plugins/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content_plugins/base.py b/content_plugins/base.py index 5266f97..f7c3213 100644 --- a/content_plugins/base.py +++ b/content_plugins/base.py @@ -158,8 +158,7 @@ class RichTextBase(PrepareRichtextMixin, FilesystemTemplateRendererPlugin): return Truncator(strip_tags(self.richtext)).words(10, truncate=" ...") -# TODO Rename to SectionBreakBase -class SectionBase(StyleMixin, FilesystemTemplateRendererPlugin): +class SectionBreakBase(StyleMixin, FilesystemTemplateRendererPlugin): if USE_TRANSLATABLE_FIELDS: subheading = TranslatableCharField(_("subheading"), null=True, blank=True, max_length=500) else: @@ -184,7 +183,7 @@ class SectionBase(StyleMixin, FilesystemTemplateRendererPlugin): return context -SectionBreakBase = SectionBase +SectionBase = SectionBreakBase class ObjectPluginBase(FilesystemTemplateRendererPlugin):