diff --git a/program/views.py b/program/views.py index 2c7c87ae9ac6b267f6144bb86c4fb5ac3877d781..11b6a3cb610cda4cc92ab63361a89ad3a5a7590f 100644 --- a/program/views.py +++ b/program/views.py @@ -125,7 +125,7 @@ class AbstractAPIProgramViewSet( value={ "end": "2024-07-15T15:30:00-04:00", "id": "2024-07-15T19:07:38.604349+00:00...2024-07-15T19:30:00+00:00", - "playlistId": None, + "mediaId": None, "showId": 1, "start": "2024-07-15T15:07:38.604349-04:00", "timeslotId": None, @@ -136,7 +136,7 @@ class AbstractAPIProgramViewSet( value={ "end": "2024-07-15T18:00:00-04:00", "id": "2024-07-15T19:30:00+00:00...2024-07-15T22:00:00+00:00", - "playlistId": None, + "mediaId": None, "showId": 3, "start": "2024-07-15T15:30:00-04:00", "timeslotId": 141, @@ -162,9 +162,9 @@ class APIProgramBasicViewSet(AbstractAPIProgramViewSet): "end": "2024-07-31T12:15:00-04:00", "episode": {"id": 6, "title": ""}, "id": "44b26957-fa84-4704-89dd-308e26b00556", - "playlistId": None, - "schedule": {"defaultPlaylistId": None, "id": 1}, - "show": {"defaultPlaylistId": None, "id": 1, "name": "EINS"}, + "mediaId": None, + "schedule": {"defaultMediaId": None, "id": 1}, + "show": {"defaultMediaId": None, "id": 1, "name": "EINS"}, "showId": 1, "start": "2024-07-31T11:00:00-04:00", "timeslot": { @@ -186,9 +186,9 @@ class APIProgramBasicViewSet(AbstractAPIProgramViewSet): "end": "2024-08-01T11:00:00-04:00", "episode": None, "id": "5e8a3075-b5d6-40c8-97d1-5ee11d8a090d", - "playlistId": None, + "mediaId": None, "schedule": None, - "show": {"defaultPlaylistId": None, "id": 2, "name": "Musikpool"}, + "show": {"defaultMediaId": None, "id": 2, "name": "Musikpool"}, "showId": 2, "start": "2024-07-31T12:15:00-04:00", "timeslot": None, @@ -219,7 +219,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): { "categoryIds": [5], "cbaSeriesId": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "description": "", "email": "ernesto@helsinki.at", "fundingCategoryId": 1, @@ -242,7 +242,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): { "categoryIds": [], "cbaSeriesId": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "description": "", "email": "", "fundingCategoryId": 1, @@ -265,7 +265,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): { "categoryIds": [], "cbaSeriesId": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "description": "", "email": "", "fundingCategoryId": 1, @@ -288,7 +288,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): { "categoryIds": [], "cbaSeriesId": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "description": "", "email": "", "fundingCategoryId": 1, @@ -311,7 +311,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): ], "timeslots": [ { - "playlistId": None, + "mediaId": None, "repetitionOfId": None, "end": "2024-07-22T18:00:00-04:00", "id": 146, @@ -321,7 +321,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T15:30:00-04:00", }, { - "playlistId": None, + "mediaId": None, "repetitionOfId": None, "end": "2024-07-22T23:00:00-04:00", "id": 267, @@ -331,7 +331,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T20:30:00-04:00", }, { - "playlistId": None, + "mediaId": None, "repetitionOfId": None, "end": "2024-07-23T12:30:00-04:00", "id": 16, @@ -407,7 +407,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T11:26:44.738502-04:00", "end": "2024-07-22T15:30:00-04:00", "timeslotId": None, - "playlistId": None, + "mediaId": None, "showId": 1, }, { @@ -415,7 +415,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T15:30:00-04:00", "end": "2024-07-22T18:00:00-04:00", "timeslotId": 146, - "playlistId": None, + "mediaId": None, "showId": 3, }, { @@ -423,7 +423,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T18:00:00-04:00", "end": "2024-07-22T20:30:00-04:00", "timeslotId": None, - "playlistId": None, + "mediaId": None, "showId": 1, }, { @@ -431,7 +431,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T20:30:00-04:00", "end": "2024-07-22T23:00:00-04:00", "timeslotId": 267, - "playlistId": None, + "mediaId": None, "showId": 4, }, { @@ -439,7 +439,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-22T23:00:00-04:00", "end": "2024-07-23T10:00:00-04:00", "timeslotId": None, - "playlistId": None, + "mediaId": None, "showId": 1, }, { @@ -447,7 +447,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-23T10:00:00-04:00", "end": "2024-07-23T12:30:00-04:00", "timeslotId": 16, - "playlistId": None, + "mediaId": None, "showId": 2, }, { @@ -455,7 +455,7 @@ class APIProgramCalendarViewSet(AbstractAPIProgramViewSet): "start": "2024-07-23T12:30:00-04:00", "end": "2024-07-23T11:26:44.738502-04:00", "timeslotId": None, - "playlistId": None, + "mediaId": None, "showId": 1, }, ], @@ -838,7 +838,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "endTime": "09:00:00", "firstDate": "2024-08-12", "id": 11, @@ -867,7 +867,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "end": "2024-08-12T09:00:00-04:00", "id": None, "episodeId": None, - "playlistId": None, + "mediaId": None, "repetitionOfId": None, "scheduleId": None, "showId": 10, @@ -920,7 +920,6 @@ class APIRRuleViewSet(viewsets.ModelViewSet): response_only=True, value={ "episodes": {}, - "playlists": {}, "projected": [ { "collisions": [ @@ -951,7 +950,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "endTime": "12:00:00", "firstDate": "2024-08-12", "id": None, @@ -995,7 +994,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": 0, - "defaultPlaylistId": None, + "defaultMediaId": None, "endTime": "18:30:00", "firstDate": "2024-01-08", "id": 8, @@ -1030,10 +1029,10 @@ class APIRRuleViewSet(viewsets.ModelViewSet): partial_update=extend_schema( examples=[ OpenApiExample( - "Request to update defaultPlaylistId", + "Request to update defaultMediaId", request_only=True, value={ - "defaultPlaylistId": 75, + "defaultMediaId": 75, }, ), OpenApiExample( @@ -1051,13 +1050,13 @@ class APIRRuleViewSet(viewsets.ModelViewSet): }, ), OpenApiExample( - "Response to update defaultPlaylistId", + "Response to update defaultMediaId", response_only=True, value={ "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": None, - "defaultPlaylistId": 75, + "defaultMediaId": 75, "endTime": "12:30:00", "firstDate": "2024-08-12", "id": 1, @@ -1075,7 +1074,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": None, - "defaultPlaylistId": None, + "defaultMediaId": None, "endTime": "12:30:00", "firstDate": "2024-08-12", "id": 1, @@ -1093,7 +1092,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": None, - "defaultPlaylistId": 75, + "defaultMediaId": 75, "endTime": "12:30:00", "firstDate": "2024-08-12", "id": 1, @@ -1117,7 +1116,7 @@ class APIRRuleViewSet(viewsets.ModelViewSet): "addBusinessDaysOnly": False, "addDaysNo": None, "byWeekday": 0, - "defaultPlaylistId": None, + "defaultMediaId": None, "endTime": "18:30:00", "firstDate": "2024-01-08", "id": 8,