Skip to content

Commit

Permalink
Re-made migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Jul 15, 2024
1 parent 43f3410 commit 00cea08
Showing 1 changed file with 62 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -15,7 +16,7 @@
class Migration(migrations.Migration):

dependencies = [
("generic_pages", "0015_alter_generalpage_body"),
("generic_pages", "0018_alter_generalpage_body"),
]

operations = [
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -235,6 +258,12 @@ class Migration(migrations.Migration):
required=False
),
),
(
"description",
wagtail.blocks.CharBlock(
required=False
),
),
(
"images",
wagtail.blocks.ListBlock(
Expand Down Expand Up @@ -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,
),
Expand Down

0 comments on commit 00cea08

Please sign in to comment.