# Generated by Django 5.2.1 on 2025-05-16 10:44

import django.db.models.deletion
import modelcluster.fields
from django.db import migrations, models

import wagtail.fields


class Migration(migrations.Migration):

    dependencies = [
        ("tests", "0052_variousondeletemodel_protected_page_and_user"),
    ]

    operations = [
        migrations.AddField(
            model_name="pagewithexcludedcopyfield",
            name="special_stream",
            field=wagtail.fields.StreamField(
                [("item", 0)],
                block_lookup={0: ("wagtail.blocks.CharBlock", (), {})},
                default=[("item", "default item")],
            ),
        ),
        migrations.CreateModel(
            name="ExcludedCopyPageNote",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "sort_order",
                    models.IntegerField(blank=True, editable=False, null=True),
                ),
                ("note", models.CharField(max_length=255)),
                (
                    "page",
                    modelcluster.fields.ParentalKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="special_notes",
                        to="tests.pagewithexcludedcopyfield",
                    ),
                ),
            ],
            options={
                "ordering": ["sort_order"],
                "abstract": False,
            },
        ),
    ]
