# Generated by Django 4.1.3 on 2023-01-02 06:06

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


class Migration(migrations.Migration):

    dependencies = [
        ("formkit_ninja", "0002_remove_formkitschemanode_children_and_more"),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="formcomponents",
            options={"ordering": ("schem", "node")},
        ),
        migrations.AddField(
            model_name="formkitschemanode",
            name="group",
            field=models.ManyToManyField(
                blank=True,
                limit_choices_to={"formkitschemaformkit__formkit": "group"},
                through="formkit_ninja.Membership",
                to="formkit_ninja.formkitschemanode",
            ),
        ),
        migrations.AlterField(
            model_name="membership",
            name="group",
            field=models.ForeignKey(
                limit_choices_to={"values__formkit": "group"},
                on_delete=django.db.models.deletion.CASCADE,
                to="formkit_ninja.formkitschemanode",
            ),
        ),
        migrations.AlterField(
            model_name="option",
            name="field",
            field=models.ForeignKey(
                limit_choices_to={"values__formkit": "group"},
                on_delete=django.db.models.deletion.CASCADE,
                to="formkit_ninja.formkitschemanode",
            ),
        ),
    ]
