From 36fa52eca0503b4b77e8aa05a3bc352a202caedd Mon Sep 17 00:00:00 2001 From: VishalMinj Date: Wed, 30 Oct 2024 23:14:35 +0530 Subject: [PATCH] fix: Redirect fixed --- home/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/views.py b/home/views.py index 5c3807d..f7a0047 100644 --- a/home/views.py +++ b/home/views.py @@ -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 @@ -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')