make blocks on contact sections optional
This commit is contained in:
@ -28,7 +28,8 @@ class ContactSubsectionBlock(blocks.StructBlock):
|
||||
blocks = blocks.StreamBlock(
|
||||
[
|
||||
("contact_entity_list", ContactEntityList),
|
||||
]
|
||||
],
|
||||
required=False,
|
||||
)
|
||||
|
||||
graphql_fields = [
|
||||
@ -49,7 +50,8 @@ class ContactSectionBlock(blocks.StructBlock):
|
||||
[
|
||||
("contact_entity_list", ContactEntityList),
|
||||
("contact_subsection", ContactSubsectionBlock(label="Kontaktunderseksjon")),
|
||||
]
|
||||
],
|
||||
required=False,
|
||||
)
|
||||
|
||||
graphql_fields = [
|
||||
|
Reference in New Issue
Block a user