Skip to content

Commit

Permalink
Ensure that we use the new video embed block on the statistical artic…
Browse files Browse the repository at this point in the history
…le and methodology pages (#93)
  • Loading branch information
helenb authored Jan 30, 2025
1 parent 2e2f544 commit a249742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/core/blocks/section_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -13,6 +12,7 @@
PanelBlock,
QuoteBlock,
RelatedLinksBlock,
VideoEmbedBlock,
)

if TYPE_CHECKING:
Expand All @@ -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")
Expand Down

0 comments on commit a249742

Please sign in to comment.