def task_4_artists_create_song(): """Should create a new song for B.B. King artist""" new_song = Song() new_song.artist_id = 3 new_song.title = 'my new title' new_song.album = 'greatest hits' new_song.save() return new_song
def task_4_artists_create_song(): """Should create a new song for B.B. King artist""" bbKing = Song() bbKing.artist_id = Artist.objects.get(artistic_name="B.B. King").id bbKing.title = "That one with Eric Clapton" bbKing.album_name = "That album with Eric Clapton" bbKing.save() """