remove bold as a feature on lead fields

This commit is contained in:
2024-08-09 03:31:34 +02:00
parent 1bb0fd252f
commit d509a1a41d
5 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ class AssociationIndex(Page):
max_count = 1 max_count = 1
subpage_types = ["associations.AssociationPage"] subpage_types = ["associations.AssociationPage"]
lead = RichTextField(features=["bold", "italic", "link"]) lead = RichTextField(features=["italic", "link"])
body = CommonStreamField body = CommonStreamField

View File

@ -26,7 +26,7 @@ class ContactIndex(Page):
max_count = 1 max_count = 1
subpage_types = [] subpage_types = []
lead = RichTextField(features=["bold", "italic", "link"], blank=True) lead = RichTextField(features=["italic", "link"], blank=True)
body = StreamField( body = StreamField(
BASE_BLOCKS + [("contact_section", ContactSectionBlock(label="Kontaktseksjon"))] BASE_BLOCKS + [("contact_section", ContactSectionBlock(label="Kontaktseksjon"))]
) )

View File

@ -12,7 +12,7 @@ class GenericPage(Page):
subpage_types = ["generic.GenericPage"] subpage_types = ["generic.GenericPage"]
show_in_menus = True show_in_menus = True
lead = RichTextField(features=["bold", "italic", "link"]) lead = RichTextField(features=["link"])
body = StreamField(BASE_BLOCKS + [("page_section", PageSectionBlock())]) body = StreamField(BASE_BLOCKS + [("page_section", PageSectionBlock())])
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [

View File

@ -15,7 +15,7 @@ class NewsIndex(Page):
max_count = 1 max_count = 1
subpage_types = ["news.NewsPage"] subpage_types = ["news.NewsPage"]
lead = RichTextField(features=["bold", "italic", "link"], blank=True) lead = RichTextField(features=["italic", "link"], blank=True)
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [
FieldPanel("lead", heading="Ingress"), FieldPanel("lead", heading="Ingress"),
@ -34,7 +34,7 @@ class NewsPage(WPImportedPageMixin, Page):
show_in_menus = False show_in_menus = False
excerpt = models.TextField(max_length=512, blank=False) excerpt = models.TextField(max_length=512, blank=False)
lead = RichTextField(features=["bold", "italic", "link"], blank=True) lead = RichTextField(features=["italic", "link"], blank=True)
body = CommonStreamField body = CommonStreamField
featured_image = models.ForeignKey( featured_image = models.ForeignKey(
"images.CustomImage", "images.CustomImage",

View File

@ -22,7 +22,7 @@ class VenueIndex(Page):
max_count = 1 max_count = 1
subpage_types = ["venues.VenuePage"] subpage_types = ["venues.VenuePage"]
lead = RichTextField(features=["bold", "italic", "link"], blank=True) lead = RichTextField(features=["italic", "link"], blank=True)
body = CommonStreamField body = CommonStreamField
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [
@ -39,7 +39,7 @@ class VenueRentalIndex(Page):
max_count = 1 max_count = 1
subpage_types = [] subpage_types = []
lead = RichTextField(features=["bold", "italic", "link"], blank=True) lead = RichTextField(features=["italic", "link"], blank=True)
body = CommonStreamField body = CommonStreamField
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [