mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 21:02:24 +01:00
Forget cancelled songs instead of state=(*)
This commit is contained in:
@ -214,8 +214,7 @@ def cancel(request):
|
||||
playlist_song = get_object_or_404(PlaylistSong, id=request.POST.get('id'))
|
||||
if playlist_song.user != request.user and not request.user.has_perm('queues.can_cancel'):
|
||||
return HttpResponseForbidden()
|
||||
playlist_song.state = 3
|
||||
playlist_song.save()
|
||||
playlist_song.delete()
|
||||
return JsonResponse({})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user