From 70f0d4810eed5fb47792991cb6a3c866626d5b0e Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Thu, 11 Apr 2024 16:36:19 -0400
Subject: [PATCH] feat: add APIRadioSettingsViewSet

---
 program/views.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/program/views.py b/program/views.py
index 23439554..285476d7 100644
--- a/program/views.py
+++ b/program/views.py
@@ -48,6 +48,7 @@ from program.models import (
     LinkType,
     MusicFocus,
     Note,
+    RadioSettings,
     RRule,
     Schedule,
     ScheduleConflictError,
@@ -67,6 +68,7 @@ from program.serializers import (
     LinkTypeSerializer,
     MusicFocusSerializer,
     NoteSerializer,
+    RadioSettingsSerializer,
     RRuleSerializer,
     ScheduleConflictResponseSerializer,
     ScheduleCreateUpdateRequestSerializer,
@@ -903,3 +905,8 @@ class APILinkTypeViewSet(viewsets.ModelViewSet):
 class APILicenseViewSet(viewsets.ModelViewSet):
     queryset = License.objects.all()
     serializer_class = LicenseSerializer
+
+
+class APIRadioSettingsViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
+    queryset = RadioSettings.objects.all()
+    serializer_class = RadioSettingsSerializer
-- 
GitLab