Skip to content

Commit

Permalink
fix for markdown_body absent in content_panel
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwages committed Dec 11, 2023
1 parent fb65318 commit c06a120
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,28 @@ class BlogAbstract(EntryAbstract):
null=True,
)

content_panels = EntryAbstract.content_panels + []
content_panels = [
MultiFieldPanel(
[
FieldPanel('title', classname="title"),
ImageChooserPanel('header_image'),
FieldPanel('body', classname="full"),
FieldPanel('excerpt', classname="full"),
],
heading=_("Content")
),
MultiFieldPanel(
[
FieldPanel('tags'),
InlinePanel('entry_categories', label=_("Categories")),
InlinePanel(
'related_entrypage_from',
label=_("Related Entries"),
panels=[PageChooserPanel('entrypage_to')]
),
],
heading=_("Page Metadata")),
]

class Meta:
abstract = True
Expand Down

0 comments on commit c06a120

Please sign in to comment.