Beispiel #1
0
 def persist_new_release_call(self, response):
     for album_data in response["albums"]["items"]:
         album = Album.from_response(album_data)
         album.save()
         for artist_data in album_data["artists"]:
             artist = Artist.from_reponse(artist_data)
             artist.save()
             album.artists.add(artist)