diff --git a/program/serializers.py b/program/serializers.py index efed2b30bd63dbee0865eae94fc0c27081ebe8c5..9d189d97c9cdcda1263d29c80c9dc0d6cc2240b5 100644 --- a/program/serializers.py +++ b/program/serializers.py @@ -1100,14 +1100,14 @@ class RadioSettingsSerializer(serializers.ModelSerializer): if self.context.get("request").user.is_authenticated: return { "api_key": obj.cba_api_key, - "domain": obj.cba_domains, + "domains": obj.cba_domains, } else: return {"domains": obj.cba_domains} @staticmethod def get_programme(obj) -> dict[str, int]: - return {"fallbackShowId": obj.fallback_show.id if obj.fallback_show else None} + return {"fallback_show_id": obj.fallback_show.id if obj.fallback_show else None} @staticmethod def get_playout(obj) -> dict[str, dict[str, str]]: @@ -1117,6 +1117,6 @@ class RadioSettingsSerializer(serializers.ModelSerializer): def get_station(obj) -> dict[str, int | str]: return { "name": obj.station_name, - "logoId": obj.station_logo.id if obj.station_logo else None, + "logo_id": obj.station_logo.id if obj.station_logo else None, "website": obj.station_website, }