Edit in the login view for the redirection for the already login user

This commit is contained in:
Vivek P Prakash
2025-11-28 16:11:27 +05:30
parent c4d7d4f6bf
commit d6abf022a2

View File

@@ -53,7 +53,7 @@ class UserDeleteView(LoginRequiredMixin, generic.DeleteView):
def login_view(request):
if request.user.is_authenticated:
return redirect("home") # Redirect authenticated user
return redirect("dashboard") # Redirect authenticated user
form = LoginForm(request, data=request.POST or None)