Commit 896f648a authored by Ciaran Ainsworth's avatar Ciaran Ainsworth Committed by Georg Krause
Browse files

Undo changes to serializer

parent d1ad391c
...@@ -161,7 +161,6 @@ def serialize_artist_simple(artist): ...@@ -161,7 +161,6 @@ def serialize_artist_simple(artist):
"is_local": artist.is_local, "is_local": artist.is_local,
"content_category": artist.content_category, "content_category": artist.content_category,
} }
if "description" in artist._state.fields_cache: if "description" in artist._state.fields_cache:
data["description"] = ( data["description"] = (
common_serializers.ContentSerializer(artist.description).data common_serializers.ContentSerializer(artist.description).data
...@@ -175,8 +174,7 @@ def serialize_artist_simple(artist): ...@@ -175,8 +174,7 @@ def serialize_artist_simple(artist):
if artist.attachment_cover if artist.attachment_cover
else None else None
) )
if "channel" in artist._state.fields_cache and artist.get_channel():
if artist.get_channel():
data["channel"] = str(artist.channel.uuid) data["channel"] = str(artist.channel.uuid)
if getattr(artist, "_tracks_count", None) is not None: if getattr(artist, "_tracks_count", None) is not None:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment