Skip to content

Commit

Permalink
fix: fix test by adding migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoni Martyniuk committed Jul 8, 2023
1 parent 8e9ad54 commit de81698
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions wagtail/test/testapp/migrations/0026_alter_streampage_body.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by Django 4.0.10 on 2023-07-08 22:18

from django.db import migrations
import wagtail.blocks
import wagtail.fields
import wagtail.test.testapp.models


class Migration(migrations.Migration):

dependencies = [
("tests", "0025_alter_importantpagesgenericsetting_options"),
]

operations = [
migrations.AlterField(
model_name="streampage",
name="body",
field=wagtail.fields.StreamField(
[
("text", wagtail.blocks.CharBlock()),
(
"choice",
wagtail.blocks.ChoiceBlock(
choices=wagtail.test.testapp.models.get_callable_choices,
required=False,
),
),
("rich_text", wagtail.blocks.RichTextBlock()),
("image", wagtail.test.testapp.models.ExtendedImageChooserBlock()),
(
"product",
wagtail.blocks.StructBlock(
[
("name", wagtail.blocks.CharBlock()),
("price", wagtail.blocks.CharBlock()),
]
),
),
("raw_html", wagtail.blocks.RawHTMLBlock()),
(
"books",
wagtail.blocks.StreamBlock(
[
("title", wagtail.blocks.CharBlock()),
("author", wagtail.blocks.CharBlock()),
]
),
),
(
"title_list",
wagtail.blocks.ListBlock(wagtail.blocks.CharBlock()),
),
],
use_json_field=True,
),
),
]

0 comments on commit de81698

Please sign in to comment.