add event subtitle

This commit is contained in:
2024-08-07 20:36:44 +02:00
parent fddc0296e6
commit 8c5a9ad132
6 changed files with 38 additions and 8 deletions

View File

@ -246,6 +246,14 @@ class EventPage(Page):
),
)
subtitle = models.CharField(
blank=True,
max_length=128,
help_text=(
"En kort tekst som kommer rett under under tittelen. "
"La denne gjerne stå tom om du fikk plass til det meste i tittelen."
),
)
body = CommonStreamField
categories = ParentalManyToManyField(
@ -309,6 +317,7 @@ class EventPage(Page):
]
content_panels = Page.content_panels + [
FieldPanel("subtitle", heading="Undertittel"),
FieldPanel("featured_image"),
FieldPanel("body"),
FieldPanel("categories", widget=forms.CheckboxSelectMultiple),
@ -345,6 +354,7 @@ class EventPage(Page):
]
graphql_fields = [
GraphQLString("subtitle"),
GraphQLImage("featured_image"),
GraphQLStreamfield("body"),
GraphQLString("pig"),