Skip to content

Commit

Permalink
EntryAbstract change content panels may fix the missing markdown_body…
Browse files Browse the repository at this point in the history
… in puput (#150)

* Update to handle AoE for deadlines.

* Fakes and mocks are gremlins. (#131)

* use CDN

* storage key

* storage account key

* add django debug toolbar

* add django-debug-toolbar to requirements

* body can be null

* migration rollback for home app and re-create 0017 to allow for null body fields in Page models

* re-add puput

* fix for markdown_body absent in content_panel

* django-debug-toolbar to requirements.txt

---------

Co-authored-by: Sarah Boyce <[email protected]>
  • Loading branch information
dawnwages and sarahboyce authored Dec 11, 2023
1 parent 82857e6 commit a61e794
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion requirements/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-r requirements.txt
freezegun
freezegun
1 change: 1 addition & 0 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ python-dotenv
puput
urllib3==1.26.6
django-extensions
django-debug-toolbar

0 comments on commit a61e794

Please sign in to comment.