# Generated by Django 3.2.20 on 2023-08-23 09:27

import wagtail.blocks
import wagtail.fields
from django.db import migrations


class Migration(migrations.Migration):
    dependencies = [
        ("assignment", "0005_alter_assignment_assignment_type"),
    ]

    operations = [
        migrations.AlterField(
            model_name="assignment",
            name="evaluation_tasks",
            field=wagtail.fields.StreamField(
                [
                    (
                        "task",
                        wagtail.blocks.StructBlock(
                            [
                                ("title", wagtail.blocks.TextBlock()),
                                (
                                    "description",
                                    wagtail.blocks.RichTextBlock(
                                        blank=True,
                                        features=["ul", "bold", "italic", "link"],
                                        required=False,
                                    ),
                                ),
                                ("max_points", wagtail.blocks.IntegerBlock()),
                                (
                                    "sub_tasks",
                                    wagtail.blocks.ListBlock(
                                        wagtail.blocks.StructBlock(
                                            [
                                                ("title", wagtail.blocks.TextBlock()),
                                                (
                                                    "description",
                                                    wagtail.blocks.RichTextBlock(
                                                        blank=True,
                                                        features=[
                                                            "ul",
                                                            "bold",
                                                            "italic",
                                                            "link",
                                                        ],
                                                        required=False,
                                                    ),
                                                ),
                                                (
                                                    "points",
                                                    wagtail.blocks.IntegerBlock(),
                                                ),
                                            ]
                                        ),
                                        blank=True,
                                        use_json_field=True,
                                    ),
                                ),
                            ]
                        ),
                    )
                ],
                blank=True,
                help_text="Beurteilungsschritte",
                use_json_field=True,
            ),
        ),
        migrations.AlterField(
            model_name="assignment",
            name="tasks",
            field=wagtail.fields.StreamField(
                [
                    (
                        "task",
                        wagtail.blocks.StructBlock(
                            [
                                ("title", wagtail.blocks.TextBlock()),
                                (
                                    "file_submission_required",
                                    wagtail.blocks.BooleanBlock(required=False),
                                ),
                                (
                                    "content",
                                    wagtail.blocks.StreamBlock(
                                        [
                                            (
                                                "explanation",
                                                wagtail.blocks.StructBlock(
                                                    [
                                                        (
                                                            "text",
                                                            wagtail.blocks.RichTextBlock(
                                                                features=[
                                                                    "ul",
                                                                    "bold",
                                                                    "italic",
                                                                    "link",
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "user_text_input",
                                                wagtail.blocks.StructBlock(
                                                    [
                                                        (
                                                            "text",
                                                            wagtail.blocks.RichTextBlock(
                                                                blank=True,
                                                                features=[
                                                                    "ul",
                                                                    "bold",
                                                                    "italic",
                                                                    "link",
                                                                ],
                                                                required=False,
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "user_confirmation",
                                                wagtail.blocks.StructBlock(
                                                    [
                                                        (
                                                            "text",
                                                            wagtail.blocks.RichTextBlock(
                                                                features=[
                                                                    "ul",
                                                                    "bold",
                                                                    "italic",
                                                                    "link",
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                        ],
                                        blank=True,
                                    ),
                                ),
                            ]
                        ),
                    )
                ],
                blank=True,
                help_text="Teilaufgaben",
                use_json_field=True,
            ),
        ),
    ]
