Remove temporary debuging code.

This commit is contained in:
Josh Washburne 2018-04-03 09:30:30 -04:00
parent aaad64dc39
commit d785fae875

View file

@ -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