Is there a way to create a page model with a StreamField that has default blocks when a new page is created?
For example I have this custom page:
class CustomPage(Page):
body = StreamField([("text", TextBlock())])
and I always want to have a text block with a default text inside the body when I open the "add a new page" view.
and how do I do this with a more complex block like ItemList
?
class Item(StructBlock):
text = CharBlock()
image = ImageChooserBlock()
class ItemList(StructBlock):
items = StreamBlock([("item", Item()),])