adds resume and streaming block

This commit is contained in:
Konstantin 2024-03-01 19:44:00 +01:00
parent b6554fbf83
commit b2001195fc
18 changed files with 223 additions and 0 deletions

20
portfolio/models.py Normal file
View file

@ -0,0 +1,20 @@
from wagtail.models import Page
from wagtail.fields import StreamField
from wagtail.admin.panels import FieldPanel
from portfolio.blocks import PortfolioStreamBlock
class PortfolioPage(Page):
parent_page_types = ["home.HomePage"]
body = StreamField(
PortfolioStreamBlock(),
blank=True,
use_json_field=True,
help_text="Use this section to list your projects and skills.",
)
content_panels = Page.content_panels + [
FieldPanel("body"),
]