From 8be5c62686b7894af038f2e0cee950921960c4c0 Mon Sep 17 00:00:00 2001 From: Helen C Date: Tue, 28 Jan 2025 12:14:04 +0000 Subject: [PATCH] Ensure that we use the new video embed block on the statistical article and methodology pages --- cms/core/blocks/section_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/core/blocks/section_blocks.py b/cms/core/blocks/section_blocks.py index 89f21af4..32538b5b 100644 --- a/cms/core/blocks/section_blocks.py +++ b/cms/core/blocks/section_blocks.py @@ -2,7 +2,6 @@ from django.utils.text import slugify from wagtail.blocks import RichTextBlock, StreamBlock, StructBlock -from wagtail.embeds.blocks import EmbedBlock from wagtail.images.blocks import ImageChooserBlock from wagtailmath.blocks import MathBlock @@ -13,6 +12,7 @@ PanelBlock, QuoteBlock, RelatedLinksBlock, + VideoEmbedBlock, ) if TYPE_CHECKING: @@ -27,7 +27,7 @@ class SectionContentBlock(StreamBlock): panel = PanelBlock() image = ImageChooserBlock(group="Media") documents = DocumentsBlock(group="Media") - embed = EmbedBlock(group="Media") + video_embed = VideoEmbedBlock(group="Media") equation = MathBlock(group="DataVis", icon="decimal") ons_embed = ONSEmbedBlock(group="DataVis", label="ONS General Embed") related_links = RelatedLinksBlock(icon="link")