Retrieve Album and Game information from Song serializer.
This commit is contained in:
parent
253ee3ddd2
commit
81c948783b
1 changed files with 2 additions and 0 deletions
|
@ -35,7 +35,9 @@ class SongSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
|
|
||||||
class SongRetrieveSerializer(SongSerializer):
|
class SongRetrieveSerializer(SongSerializer):
|
||||||
|
album = AlbumSerializer()
|
||||||
artists = ArtistFullnameSerializer(many=True)
|
artists = ArtistFullnameSerializer(many=True)
|
||||||
|
game = GameSerializer()
|
||||||
|
|
||||||
|
|
||||||
class SongArtistsListSerializer(serializers.Serializer):
|
class SongArtistsListSerializer(serializers.Serializer):
|
||||||
|
|
Loading…
Reference in a new issue