i Am trying to make wagtail create multiple listing in a streamfield on create new page and give a default value to each listing. The values are passed in a list of dictionarys.
`
fasiliteter = StreamField([
('faselitet', blocks.StructBlock([
('type', blocks.CharBlock()),
('ink', blocks.BooleanBlock())
],
default = [
{"type" : "Ting", "ink" : True},
{"type" : "TAng", "ink" : False}
]
)),
], use_json_field=True)
`
Can someone help me if this is possible?
I tried with lists and min number and so on