Return to watchlist after voting on a movie
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
be466c451d
commit
edd4e0ca41
@ -59,7 +59,7 @@ def vote(request, pk):
|
|||||||
user_vote.vote = request.POST['vote']
|
user_vote.vote = request.POST['vote']
|
||||||
user_vote.seen = request.POST.get('seen', False) == "on"
|
user_vote.seen = request.POST.get('seen', False) == "on"
|
||||||
user_vote.save()
|
user_vote.save()
|
||||||
return HttpResponseRedirect(reverse('watchlist:detail', args=(pk,)))
|
return HttpResponseRedirect(reverse('watchlist:index'))
|
||||||
|
|
||||||
class EditView(generic.DetailView):
|
class EditView(generic.DetailView):
|
||||||
model = models.Movie
|
model = models.Movie
|
||||||
|
Loading…
Reference in New Issue
Block a user