That's the code I use when I create demo content. It sets the default generic block that allows you to add more blocks
from uuid import uuid4
uuid = str(uuid4())
item.blocks = {uuid: {'@type': 'slate'}}
item.blocks_layout = {'items': [uuid]}
That's the code I use when I create demo content. It sets the default generic block that allows you to add more blocks
from uuid import uuid4
uuid = str(uuid4())
item.blocks = {uuid: {'@type': 'slate'}}
item.blocks_layout = {'items': [uuid]}