Return to watchlist after voting on a movie
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michal Kunc 2023-01-17 23:05:45 +01:00
parent be466c451d
commit edd4e0ca41

View File

@ -59,7 +59,7 @@ def vote(request, pk):
user_vote.vote = request.POST['vote']
user_vote.seen = request.POST.get('seen', False) == "on"
user_vote.save()
return HttpResponseRedirect(reverse('watchlist:detail', args=(pk,)))
return HttpResponseRedirect(reverse('watchlist:index'))
class EditView(generic.DetailView):
model = models.Movie