Commit f4d630dd authored by Gink's avatar Gink

Fix new playlist handling

parent 6243c637
......@@ -28,8 +28,8 @@ def addSong(request):
playlist = MusicPlaylist.objects.filter(user = request.user, playlist_name = plname)
if(len(playlist) == 0):
playlist[0] = MusicPlaylist(playlist_name = "New", is_public = True, user = request.user)
playlist.save()
playlist = [MusicPlaylist(playlist_name = "New", is_public = True, user = request.user)]
playlist[0].save()
#MusicEntry Zone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment