From 7a473f7827413efd144b9979c865a1f21e4a5f5c Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Sat, 10 Aug 2024 19:34:29 +0200 Subject: [PATCH] make blocks on contact sections optional --- dnscms/contacts/blocks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dnscms/contacts/blocks.py b/dnscms/contacts/blocks.py index fcbb0d6..7285890 100644 --- a/dnscms/contacts/blocks.py +++ b/dnscms/contacts/blocks.py @@ -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 = [