Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 6.0.5 on 2026-05-20 14:56
# etna:allowAlterField

import app.ciim.blocks
import django.core.validators
import wagtail.fields
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('articles', '0127_alter_articlepage_body_alter_focusedarticlepage_body'),
]

operations = [
migrations.AlterField(
model_name='articlepage',
name='body',
field=wagtail.fields.StreamField([('content_section', 47)], blank=True, block_lookup={0: ('wagtail.blocks.CharBlock', (), {'label': 'Heading', 'max_length': 100}), 1: ('wagtail.blocks.CharBlock', (), {'help_text': 'Display a filename with the extension e.g. example.html', 'label': 'Code block title', 'max_length': 100, 'required': False}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('html', 'HTML'), ('javascript', 'JavaScript'), ('python', 'Python'), ('xml', 'XML'), ('json', 'JSON'), ('bash', 'Bash'), ('git', 'git'), ('markdown', 'Markdown'), ('graphql', 'GraphQL'), ('powershell', 'PowerShell'), ('yaml', 'YAML')], 'label': 'Code language', 'required': False}), 3: ('wagtail.blocks.TextBlock', (), {'max_length': 500}), 4: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Allow copy to clipboard', 'required': False}), 5: ('wagtail.blocks.StructBlock', [[('filename', 1), ('language', 2), ('code', 3), ('allow_copying', 4)]], {}), 6: ('wagtail.blocks.CharBlock', (), {'label': 'Supertitle', 'max_length': 20, 'required': False}), 7: ('wagtail.blocks.CharBlock', (), {'label': 'Title', 'max_length': 100}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Description'}), 9: ('wagtail.blocks.URLBlock', (), {'label': 'URL'}), 10: ('app.core.blocks.image.APIImageChooserBlock', (), {'label': 'Image', 'required': False}), 11: ('wagtail.blocks.StructBlock', [[('supertitle', 6), ('title', 7), ('description', 8), ('url', 9), ('image', 10)]], {}), 12: ('app.core.blocks.page_chooser.APIPageChooserBlock', (), {'label': 'Page', 'page_type': ['wagtailcore.Page'], 'required': True}), 13: ('wagtail.blocks.CharBlock', (), {'help_text': 'Optional override for the teaser text', 'label': 'Teaser text override', 'required': False}), 14: ('wagtail.blocks.StructBlock', [[('page', 12), ('teaser_text', 13)]], {}), 15: ('app.core.blocks.image.APIImageChooserBlock', (), {'rendition_size': 'max-900x900', 'required': True, 'verbose_name': 'Image'}), 16: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link'], 'help_text': 'If provided, displays directly below the image. Can be used to specify sources, transcripts or other useful metadata.', 'label': 'Caption (optional)', 'required': False}), 17: ('wagtail.blocks.StructBlock', [[('image', 15), ('caption', 16)]], {}), 18: ('wagtail.blocks.CharBlock', (), {'required': False}), 19: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link', 'code'], 'required': False}), 20: ('wagtail.blocks.ListBlock', (17,), {}), 21: ('wagtail.blocks.StructBlock', [[('title', 18), ('description', 19), ('images', 20)]], {}), 22: ('wagtail.blocks.CharBlock', (), {'help_text': 'A descriptive title for the media block', 'required': True}), 23: ('app.core.blocks.image.APIImageChooserBlock', (), {'help_text': 'A thumbnail image for the media block', 'rendition_size': 'fill-960x540', 'required': False}), 24: ('app.media.blocks.MediaChooserBlock', (), {}), 25: ('wagtail.blocks.StructBlock', [[('title', 22), ('thumbnail', 23), ('media', 24)]], {}), 26: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link', 'code', 'ol', 'ul']}), 27: ('wagtail.blocks.StructBlock', [[('text', 26)]], {}), 28: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link', 'code', 'ol', 'ul'], 'required': True}), 29: ('wagtail.blocks.CharBlock', (), {'help_text': 'The name of the person being quoted. e.g. King Edward VIII', 'max_length': 100}), 30: ('wagtail.blocks.CharBlock', (), {'help_text': 'The title of the work or document from which the quote is taken. e.g. The Telegraph, 23 June 1986', 'max_length': 100, 'required': False}), 31: ('app.core.blocks.page_chooser.APIPageChooserBlock', (), {'help_text': 'Reference another page published on the site', 'label': 'Internal page', 'required': False}), 32: ('wagtail.blocks.URLBlock', (), {'help_text': 'Add a URL here to refer to an external source', 'label': 'External link', 'required': False}), 33: ('wagtail.blocks.StructBlock', [[('citation_internal_link', 31), ('citation_external_link', 32)]], {}), 34: ('wagtail.blocks.StructBlock', [[('citation', 30), ('source_link', 33)]], {}), 35: ('wagtail.blocks.StructBlock', [[('quote', 28), ('attribution', 29), ('source', 34)]], {}), 36: ('wagtail.blocks.ListBlock', (app.ciim.blocks.RecordLinkBlock,), {'label': 'Items', 'verbose_name': 'Record links'}), 37: ('wagtail.blocks.StructBlock', [[('items', 36)]], {}), 38: ('wagtail.blocks.CharBlock', (), {'label': 'Sub-heading', 'max_length': 100}), 39: ('wagtail.blocks.StructBlock', [[('heading', 38)]], {}), 40: ('wagtail.blocks.CharBlock', (), {'label': 'Title', 'max_length': 100, 'required': True}), 41: ('wagtail.blocks.CharBlock', (), {'label': 'YouTube Video ID', 'max_length': 11, 'required': True, 'validators': [django.core.validators.RegexValidator(message='Invalid YouTube Video ID', regex='^[a-zA-Z0-9_-]{11}$')]}), 42: ('app.core.blocks.image.APIImageChooserBlock', (), {'label': 'Preview Image', 'rendition_size': 'fill-640x360', 'required': True}), 43: ('wagtail.blocks.RichTextBlock', (), {'label': 'Transcript', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'help_text': 'Tick if the video has captions on YouTube', 'label': 'Captions available', 'required': False}), 45: ('wagtail.blocks.StructBlock', [[('title', 40), ('video_id', 41), ('preview_image', 42), ('transcript', 43), ('captions_available', 44)]], {}), 46: ('wagtail.blocks.StreamBlock', [[('code', 5), ('featured_external_link', 11), ('featured_page', 14), ('image', 17), ('image_gallery', 21), ('media', 25), ('paragraph', 27), ('quote', 35), ('record_links', 37), ('sub_heading', 39), ('youtube_video', 45)]], {'required': False}), 47: ('wagtail.blocks.StructBlock', [[('heading', 0), ('content', 46)]], {})}, null=True),
),
migrations.AlterField(
model_name='focusedarticlepage',
name='body',
field=wagtail.fields.StreamField([('content_section', 47)], blank=True, block_lookup={0: ('wagtail.blocks.CharBlock', (), {'label': 'Heading', 'max_length': 100}), 1: ('wagtail.blocks.CharBlock', (), {'help_text': 'Display a filename with the extension e.g. example.html', 'label': 'Code block title', 'max_length': 100, 'required': False}), 2: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('html', 'HTML'), ('javascript', 'JavaScript'), ('python', 'Python'), ('xml', 'XML'), ('json', 'JSON'), ('bash', 'Bash'), ('git', 'git'), ('markdown', 'Markdown'), ('graphql', 'GraphQL'), ('powershell', 'PowerShell'), ('yaml', 'YAML')], 'label': 'Code language', 'required': False}), 3: ('wagtail.blocks.TextBlock', (), {'max_length': 500}), 4: ('wagtail.blocks.BooleanBlock', (), {'default': False, 'help_text': 'Allow copy to clipboard', 'required': False}), 5: ('wagtail.blocks.StructBlock', [[('filename', 1), ('language', 2), ('code', 3), ('allow_copying', 4)]], {}), 6: ('wagtail.blocks.CharBlock', (), {'label': 'Supertitle', 'max_length': 20, 'required': False}), 7: ('wagtail.blocks.CharBlock', (), {'label': 'Title', 'max_length': 100}), 8: ('wagtail.blocks.CharBlock', (), {'label': 'Description'}), 9: ('wagtail.blocks.URLBlock', (), {'label': 'URL'}), 10: ('app.core.blocks.image.APIImageChooserBlock', (), {'label': 'Image', 'required': False}), 11: ('wagtail.blocks.StructBlock', [[('supertitle', 6), ('title', 7), ('description', 8), ('url', 9), ('image', 10)]], {}), 12: ('app.core.blocks.page_chooser.APIPageChooserBlock', (), {'label': 'Page', 'page_type': ['wagtailcore.Page'], 'required': True}), 13: ('wagtail.blocks.CharBlock', (), {'help_text': 'Optional override for the teaser text', 'label': 'Teaser text override', 'required': False}), 14: ('wagtail.blocks.StructBlock', [[('page', 12), ('teaser_text', 13)]], {}), 15: ('app.core.blocks.image.APIImageChooserBlock', (), {'rendition_size': 'max-900x900', 'required': True, 'verbose_name': 'Image'}), 16: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link'], 'help_text': 'If provided, displays directly below the image. Can be used to specify sources, transcripts or other useful metadata.', 'label': 'Caption (optional)', 'required': False}), 17: ('wagtail.blocks.StructBlock', [[('image', 15), ('caption', 16)]], {}), 18: ('wagtail.blocks.CharBlock', (), {'required': False}), 19: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link', 'code'], 'required': False}), 20: ('wagtail.blocks.ListBlock', (17,), {}), 21: ('wagtail.blocks.StructBlock', [[('title', 18), ('description', 19), ('images', 20)]], {}), 22: ('wagtail.blocks.CharBlock', (), {'help_text': 'A descriptive title for the media block', 'required': True}), 23: ('app.core.blocks.image.APIImageChooserBlock', (), {'help_text': 'A thumbnail image for the media block', 'rendition_size': 'fill-960x540', 'required': False}), 24: ('app.media.blocks.MediaChooserBlock', (), {}), 25: ('wagtail.blocks.StructBlock', [[('title', 22), ('thumbnail', 23), ('media', 24)]], {}), 26: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link', 'code', 'ol', 'ul']}), 27: ('wagtail.blocks.StructBlock', [[('text', 26)]], {}), 28: ('app.core.blocks.paragraph.APIRichTextBlock', (), {'features': ['bold', 'italic', 'link', 'code', 'ol', 'ul'], 'required': True}), 29: ('wagtail.blocks.CharBlock', (), {'help_text': 'The name of the person being quoted. e.g. King Edward VIII', 'max_length': 100}), 30: ('wagtail.blocks.CharBlock', (), {'help_text': 'The title of the work or document from which the quote is taken. e.g. The Telegraph, 23 June 1986', 'max_length': 100, 'required': False}), 31: ('app.core.blocks.page_chooser.APIPageChooserBlock', (), {'help_text': 'Reference another page published on the site', 'label': 'Internal page', 'required': False}), 32: ('wagtail.blocks.URLBlock', (), {'help_text': 'Add a URL here to refer to an external source', 'label': 'External link', 'required': False}), 33: ('wagtail.blocks.StructBlock', [[('citation_internal_link', 31), ('citation_external_link', 32)]], {}), 34: ('wagtail.blocks.StructBlock', [[('citation', 30), ('source_link', 33)]], {}), 35: ('wagtail.blocks.StructBlock', [[('quote', 28), ('attribution', 29), ('source', 34)]], {}), 36: ('wagtail.blocks.ListBlock', (app.ciim.blocks.RecordLinkBlock,), {'label': 'Items', 'verbose_name': 'Record links'}), 37: ('wagtail.blocks.StructBlock', [[('items', 36)]], {}), 38: ('wagtail.blocks.CharBlock', (), {'label': 'Sub-heading', 'max_length': 100}), 39: ('wagtail.blocks.StructBlock', [[('heading', 38)]], {}), 40: ('wagtail.blocks.CharBlock', (), {'label': 'Title', 'max_length': 100, 'required': True}), 41: ('wagtail.blocks.CharBlock', (), {'label': 'YouTube Video ID', 'max_length': 11, 'required': True, 'validators': [django.core.validators.RegexValidator(message='Invalid YouTube Video ID', regex='^[a-zA-Z0-9_-]{11}$')]}), 42: ('app.core.blocks.image.APIImageChooserBlock', (), {'label': 'Preview Image', 'rendition_size': 'fill-640x360', 'required': True}), 43: ('wagtail.blocks.RichTextBlock', (), {'label': 'Transcript', 'required': False}), 44: ('wagtail.blocks.BooleanBlock', (), {'help_text': 'Tick if the video has captions on YouTube', 'label': 'Captions available', 'required': False}), 45: ('wagtail.blocks.StructBlock', [[('title', 40), ('video_id', 41), ('preview_image', 42), ('transcript', 43), ('captions_available', 44)]], {}), 46: ('wagtail.blocks.StreamBlock', [[('code', 5), ('featured_external_link', 11), ('featured_page', 14), ('image', 17), ('image_gallery', 21), ('media', 25), ('paragraph', 27), ('quote', 35), ('record_links', 37), ('sub_heading', 39), ('youtube_video', 45)]], {'required': False}), 47: ('wagtail.blocks.StructBlock', [[('heading', 0), ('content', 46)]], {})}, null=True),
),
]
Loading
Loading