diff --git a/etna/generic_pages/migrations/0016_alter_generalpage_body.py b/etna/generic_pages/migrations/0019_alter_generalpage_body.py similarity index 91% rename from etna/generic_pages/migrations/0016_alter_generalpage_body.py rename to etna/generic_pages/migrations/0019_alter_generalpage_body.py index 86ea1198e..8e08b56d0 100644 --- a/etna/generic_pages/migrations/0016_alter_generalpage_body.py +++ b/etna/generic_pages/migrations/0019_alter_generalpage_body.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.6 on 2024-07-02 13:26 +# Generated by Django 5.0.6 on 2024-07-15 14:00 # etna:allowAlterField import etna.core.blocks.image @@ -7,6 +7,7 @@ import etna.media.blocks import etna.records.blocks import wagtail.blocks +import wagtail.documents.blocks import wagtail.fields import wagtail.snippets.blocks from django.db import migrations @@ -15,7 +16,7 @@ class Migration(migrations.Migration): dependencies = [ - ("generic_pages", "0015_alter_generalpage_body"), + ("generic_pages", "0018_alter_generalpage_body"), ] operations = [ @@ -120,6 +121,28 @@ class Migration(migrations.Migration): ] ), ), + ( + "document", + wagtail.blocks.StructBlock( + [ + ( + "documents", + wagtail.blocks.ListBlock( + wagtail.blocks.StructBlock( + [ + ( + "file", + wagtail.documents.blocks.DocumentChooserBlock( + required=True + ), + ) + ] + ) + ), + ) + ] + ), + ), ( "do_dont_list", wagtail.blocks.StructBlock( @@ -235,6 +258,12 @@ class Migration(migrations.Migration): required=False ), ), + ( + "description", + wagtail.blocks.CharBlock( + required=False + ), + ), ( "images", wagtail.blocks.ListBlock( @@ -604,6 +633,37 @@ class Migration(migrations.Migration): ] ), ), + ( + "youtube_video", + wagtail.blocks.StructBlock( + [ + ( + "title", + wagtail.blocks.CharBlock( + label="Title", + max_length=100, + required=True, + ), + ), + ( + "video_id", + wagtail.blocks.CharBlock( + label="YouTube Video ID", + max_length=11, + required=True, + ), + ), + ( + "preview_image", + etna.core.blocks.image.APIImageChooserBlock( + label="Preview Image", + rendition_size="max-640x360", + required=False, + ), + ), + ] + ), + ), ], required=False, ),