summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshen2019-06-04 12:27:48 +0530
committerAkshen2019-06-04 12:27:48 +0530
commit6f162fbe10527300ac031f7e66e96309732d4ef7 (patch)
tree1bdccdb88d2c3a1ad8501f89e438d5bcd95b05a8
parente58f18c7fd4776977f271dcebf28baf614273fef (diff)
downloadFOSSEE_animations-6f162fbe10527300ac031f7e66e96309732d4ef7.tar.gz
FOSSEE_animations-6f162fbe10527300ac031f7e66e96309732d4ef7.tar.bz2
FOSSEE_animations-6f162fbe10527300ac031f7e66e96309732d4ef7.zip
index function fixed in view.py
-rw-r--r--fossee_manim/views.py13
1 files changed, 1 insertions, 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):