diff --git a/cms/dynamic_content/access.py b/cms/dynamic_content/access.py index 551c473d5..e490d334a 100644 --- a/cms/dynamic_content/access.py +++ b/cms/dynamic_content/access.py @@ -13,6 +13,7 @@ ("section", sections.Section()), ], use_json_field=True, + collapsed=True, ) ALLOWABLE_BODY_CONTENT_SECTION_LINK = StreamField( @@ -20,6 +21,7 @@ ("section", sections.SectionWithLink()), ], use_json_field=True, + collapsed=True, ) ALLOWABLE_BODY_CONTENT_TEXT_SECTION = StreamField( @@ -27,6 +29,7 @@ ("section", sections.TextSection()), ], use_json_field=True, + collapsed=True, ) ALLOWABLE_BODY_CONTENT_COMPOSITE = StreamField( @@ -70,4 +73,5 @@ ), ], use_json_field=True, + collapsed=True, ) diff --git a/cms/dynamic_content/sections.py b/cms/dynamic_content/sections.py index 2cc946e7d..efb06849d 100644 --- a/cms/dynamic_content/sections.py +++ b/cms/dynamic_content/sections.py @@ -29,6 +29,9 @@ class ContentCards(StreamBlock): help_text=help_texts.FILTER_LINKED_TIME_SERIES_CHART_TEMPLATE, ) + class Meta: + collapsed = True + class FooterCardsSectionWithLink(StreamBlock): section_link = blocks.SectionFooterLink(max_num=1) @@ -41,6 +44,9 @@ class ContentCardsSectionWithLink(StreamBlock): weather_health_alert_card = cards.WeatherHealthAlertsCard() popular_topics_card = cards.PopularTopicsCard() + class Meta: + collapsed = True + class Section(StructBlock): heading = TextBlock(help_text=help_texts.HEADING_BLOCK, required=True)