Skip to content
Snippets Groups Projects
Verified Commit 2df5050b authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: replace cameCased keys

parent 59390283
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment