From 4266e43388190ec9d17585904139e4b54bde883a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 9 Aug 2020 19:08:47 +0800 Subject: [PATCH] Simplified the log out view in the Mia core application. --- mia_core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mia_core/views.py b/mia_core/views.py index 95f2573..f83706f 100644 --- a/mia_core/views.py +++ b/mia_core/views.py @@ -51,7 +51,7 @@ def logout(request): if "next" in request.POST: request.session["logout"] = True return redirect(request.POST["next"]) - return redirect(reverse("home")) + return redirect("home") # TODO: To be removed.