Browse Source

Really renamed SectionBase to SectionBreakBase, leaving old name as alias.

master
Erik Stein 6 years ago
parent
commit
0cebd9b6d2
  1. 5
      content_plugins/base.py

5
content_plugins/base.py

@ -158,8 +158,7 @@ class RichTextBase(PrepareRichtextMixin, FilesystemTemplateRendererPlugin):
return Truncator(strip_tags(self.richtext)).words(10, truncate=" ...") return Truncator(strip_tags(self.richtext)).words(10, truncate=" ...")
# TODO Rename to SectionBreakBase class SectionBreakBase(StyleMixin, FilesystemTemplateRendererPlugin):
class SectionBase(StyleMixin, FilesystemTemplateRendererPlugin):
if USE_TRANSLATABLE_FIELDS: if USE_TRANSLATABLE_FIELDS:
subheading = TranslatableCharField(_("subheading"), null=True, blank=True, max_length=500) subheading = TranslatableCharField(_("subheading"), null=True, blank=True, max_length=500)
else: else:
@ -184,7 +183,7 @@ class SectionBase(StyleMixin, FilesystemTemplateRendererPlugin):
return context return context
SectionBreakBase = SectionBase SectionBase = SectionBreakBase
class ObjectPluginBase(FilesystemTemplateRendererPlugin): class ObjectPluginBase(FilesystemTemplateRendererPlugin):

Loading…
Cancel
Save