From f4e2a541997fd0216dc3df8d70581b0d096911b1 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Wed, 24 Jul 2024 14:34:39 -0400
Subject: [PATCH] fix: allow timeslot to be null in the playout serializer

---
 program/serializers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/program/serializers.py b/program/serializers.py
index 61232483..44690f1c 100644
--- a/program/serializers.py
+++ b/program/serializers.py
@@ -1313,7 +1313,7 @@ class PlayoutProgramEntrySerializer(BasicProgramEntrySerializer):
             model = Note
             fields = ["id", "title"]
 
-    timeslot = TimeSlotSerializer()
+    timeslot = TimeSlotSerializer(allow_null=True)
     show = PlayoutShowSerializer()
     episode = PlayoutEpisodeSerializer(allow_null=True, source="timeslot.note")
     schedule = PlayoutScheduleSerializer(allow_null=True, source="timeslot.schedule")
-- 
GitLab