# Generated by Django 3.2.15 on 2022-11-01 10:48

import django.core.validators
import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("wagtailcore", "0001_initial"),
        ("ocyan_plugin_wagtail", "0001_squashed"),
    ]

    operations = [
        migrations.CreateModel(
            name="MenuLink",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                (
                    "link",
                    models.CharField(
                        max_length=512,
                        validators=[
                            django.core.validators.RegexValidator(
                                regex="(?:[/?#][^\\s]*)?"
                            )
                        ],
                    ),
                ),
            ],
            options={
                "abstract": False,
                "verbose_name": "Menu link page",
                "verbose_name_plural": "Menu link pages",
            },
            bases=("wagtailcore.page",),
        ),
    ]
