From 89d172d604d36a96c1bd7543f4af0f81f58d8628 Mon Sep 17 00:00:00 2001 From: Vaishnavi Date: Tue, 29 Oct 2024 14:15:22 +0530 Subject: [PATCH] redirection issue in like and dislike --- 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')