# Generated by Django 5.0.6 on 2024-06-09 00:27

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


class Migration(migrations.Migration):

    dependencies = [
        ('events', '0031_eventorganizer_external_url_and_more'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='eventpage',
            name='organizers',
        ),
        migrations.CreateModel(
            name='EventOrganizerLink',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
                ('event', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='organizers', to='events.eventpage')),
                ('organizer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='organized_events', to='events.eventorganizer')),
            ],
            options={
                'verbose_name': 'Arrangør',
                'verbose_name_plural': 'Arrangører',
            },
        ),
    ]
