diff --git a/program/views.py b/program/views.py index 407911e7ee61254fe4e5406f4db729d4c6bb3cbd..f349fe1d8fd97fa7d74a304d9a98e22baf13d3cb 100644 --- a/program/views.py +++ b/program/views.py @@ -106,7 +106,7 @@ def timeslot_entry(*, timeslot: TimeSlot) -> dict: "id": timeslot.id, "playlistId": playlist_id, # `Timeslot.repetition_of` is a foreign key that can be null - "repetitionOfId": timeslot.repetition_of.id if timeslot.repetition_of else "", + "repetitionOfId": timeslot.repetition_of.id if timeslot.repetition_of else None, "scheduleDefaultPlaylistId": schedule.default_playlist_id, "scheduleId": schedule.id, "showCategories": ", ".join(show.category.values_list("name", flat=True)),