Remove temporary debuging code.
This commit is contained in:
parent
aaad64dc39
commit
d785fae875
1 changed files with 0 additions and 2 deletions
|
@ -36,9 +36,7 @@ class SongCreateSerializer(serializers.ModelSerializer):
|
|||
def create(self, validated_data):
|
||||
artists_data = validated_data.pop('artists')
|
||||
song = Song.objects.create(**validated_data)
|
||||
print(artists_data)
|
||||
for artist_data in artists_data:
|
||||
print(artist_data)
|
||||
song.artists.add(artist_data)
|
||||
song.save()
|
||||
return song
|
||||
|
|
Loading…
Reference in a new issue