From 6b4d8e0790a7a7b14a19d26de68f3586c240b9b1 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 15 Aug 2021 22:04:33 +0200 Subject: [PATCH] make it optional to specify speaker_event conflicts --- .../0099_alter_speaker_event_conflicts.py | 23 +++++++++++++++++++ src/program/models.py | 1 + 2 files changed, 24 insertions(+) create mode 100644 src/program/migrations/0099_alter_speaker_event_conflicts.py diff --git a/src/program/migrations/0099_alter_speaker_event_conflicts.py b/src/program/migrations/0099_alter_speaker_event_conflicts.py new file mode 100644 index 00000000..9d220944 --- /dev/null +++ b/src/program/migrations/0099_alter_speaker_event_conflicts.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.5 on 2021-08-15 20:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("program", "0098_auto_20200811_1015"), + ] + + operations = [ + migrations.AlterField( + model_name="speaker", + name="event_conflicts", + field=models.ManyToManyField( + blank=True, + help_text="The Events this person wishes to attend. The AutoScheduler will avoid conflicts.", + related_name="speaker_conflicts", + to="program.Event", + ), + ), + ] diff --git a/src/program/models.py b/src/program/models.py index da8d6123..54d206a8 100644 --- a/src/program/models.py +++ b/src/program/models.py @@ -1540,6 +1540,7 @@ class Speaker(CampRelatedModel): event_conflicts = models.ManyToManyField( "program.Event", related_name="speaker_conflicts", + blank=True, help_text="The Events this person wishes to attend. The AutoScheduler will avoid conflicts.", )