Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that we use the new video embed block on the statistical article and methodology pages #93

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading