Simplified the log out view in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-09 19:08:47 +08:00
parent 828e407c03
commit 4266e43388

View File

@ -51,7 +51,7 @@ def logout(request):
if "next" in request.POST: if "next" in request.POST:
request.session["logout"] = True request.session["logout"] = True
return redirect(request.POST["next"]) return redirect(request.POST["next"])
return redirect(reverse("home")) return redirect("home")
# TODO: To be removed. # TODO: To be removed.