adds resume and streaming block
This commit is contained in:
parent
b6554fbf83
commit
b2001195fc
18 changed files with 223 additions and 0 deletions
20
portfolio/models.py
Normal file
20
portfolio/models.py
Normal 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"),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue