From 16ee4aefb17983b125fee9dc16f490be52028b74 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Fri, 12 Apr 2024 18:05:17 -0400
Subject: [PATCH] feat: rename playout field

---
 ..._channels_radiosettings_line_in_channels.py | 18 ++++++++++++++++++
 program/models.py                              |  2 +-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 program/migrations/0089_rename_playout_channels_radiosettings_line_in_channels.py

diff --git a/program/migrations/0089_rename_playout_channels_radiosettings_line_in_channels.py b/program/migrations/0089_rename_playout_channels_radiosettings_line_in_channels.py
new file mode 100644
index 00000000..54de6036
--- /dev/null
+++ b/program/migrations/0089_rename_playout_channels_radiosettings_line_in_channels.py
@@ -0,0 +1,18 @@
+# Generated by Django 4.2.11 on 2024-04-12 21:34
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("program", "0088_radiosettings"),
+    ]
+
+    operations = [
+        migrations.RenameField(
+            model_name="radiosettings",
+            old_name="playout_channels",
+            new_name="line_in_channels",
+        ),
+    ]
diff --git a/program/models.py b/program/models.py
index 70f659e1..f471ae1d 100644
--- a/program/models.py
+++ b/program/models.py
@@ -533,7 +533,7 @@ class RadioSettings(models.Model):
         blank=True, default=list, help_text="JSON array of strings", verbose_name="CBA domains"
     )
     fallback_show = models.ForeignKey(Show, blank=True, null=True, on_delete=models.CASCADE)
-    playout_channels = models.JSONField(blank=True, default=dict, help_text="JSON key/value pairs")
+    line_in_channels = models.JSONField(blank=True, default=dict, help_text="JSON key/value pairs")
     station_logo = models.ForeignKey(Image, blank=True, null=True, on_delete=models.CASCADE)
     station_name = models.CharField(max_length=256, unique=True)
     station_website = models.URLField()
-- 
GitLab