From 6f162fbe10527300ac031f7e66e96309732d4ef7 Mon Sep 17 00:00:00 2001 From: Akshen Date: Tue, 4 Jun 2019 12:27:48 +0530 Subject: index function fixed in view.py --- fossee_manim/views.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/fossee_manim/views.py b/fossee_manim/views.py index b1993be..02992a7 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -84,18 +84,7 @@ def index(request): form = UserLoginForm() if user.is_authenticated() and is_email_checked(user): return redirect('/proposal_status/') - elif request.method == "POST": - form = UserLoginForm(request.POST) - if form.is_valid(): - user = form.cleaned_data - login(request, user) - if is_superuser(user): - return redirect("/admin") - return redirect('/proposal_status/') - anime = AnimationStats.objects.filter(animation__status='released').order_by('-id')[:5] - return render(request, "fossee_manim/index.html", {"form": form, - "anime" : anime - }) + return render(request, "fossee_manim/index.html") def is_reviewer(user): -- cgit