From da859daf8d49fdf96e9488cae66edde657edc808 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 3 Jun 2024 12:51:44 -0400 Subject: [PATCH] feat: add micro show --- .../0092_radiosettings_micro_show.py | 25 +++++++++++++++++++ program/models.py | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 program/migrations/0092_radiosettings_micro_show.py diff --git a/program/migrations/0092_radiosettings_micro_show.py b/program/migrations/0092_radiosettings_micro_show.py new file mode 100644 index 00000000..d584218c --- /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 7e1d38b6..8ed4701b 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") -- GitLab