diff --git a/program/migrations/0092_radiosettings_micro_show.py b/program/migrations/0092_radiosettings_micro_show.py new file mode 100644 index 0000000000000000000000000000000000000000..d584218ccb84af64d246ee71b2359b2b4e45ce54 --- /dev/null +++ b/program/migrations/0092_radiosettings_micro_show.py @@ -0,0 +1,25 @@ +# Generated by Django 4.2.13 on 2024-06-03 16:50 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("program", "0091_radiosettings_host_image_aspect_ratio_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="radiosettings", + name="micro_show", + field=models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.CASCADE, + related_name="+", + to="program.show", + ), + ), + ] diff --git a/program/models.py b/program/models.py index 7e1d38b672f3f459bf5bf56508220bd40789647d..8ed4701be9bf94f2d188e1b02f981564687fbd8e 100644 --- a/program/models.py +++ b/program/models.py @@ -557,6 +557,9 @@ class RadioSettings(models.Model): host_image_aspect_ratio = ImageAspectRadioField(default="1:1") host_image_shape = ImageShapeField(default="round") line_in_channels = models.JSONField(blank=True, default=dict, help_text="JSON key/value pairs") + micro_show = models.ForeignKey( + Show, blank=True, null=True, on_delete=models.CASCADE, related_name="+" + ) note_image_aspect_ratio = ImageAspectRadioField(default="16:9") note_image_shape = ImageShapeField(default="rect") show_image_aspect_ratio = ImageAspectRadioField(default="16:9")