Skip to content

Commit

Permalink
fix: Redirect fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalMinj committed Oct 30, 2024
1 parent 14a8847 commit 36fa52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def likes(request, issue_pk):
current_likes = current_likes - 1
Issue.objects.filter(pk=issue_pk).update(likes=current_likes)
Issue.objects.filter(pk=issue_pk).update(dislikes=current_dislikes)
return redirect('../dashboard')
return redirect('dashboard')


@login_required
Expand All @@ -481,4 +481,4 @@ def dislikes(request, issue_pk):
current_dislikes = current_dislikes - 1
Issue.objects.filter(pk=issue_pk).update(likes=current_likes)
Issue.objects.filter(pk=issue_pk).update(dislikes=current_dislikes)
return redirect('../dashboard')
return redirect('dashboard')

0 comments on commit 36fa52e

Please sign in to comment.