summaryrefslogtreecommitdiff
path: root/fossee_manim/views.py
diff options
context:
space:
mode:
authorAkshen2019-06-04 12:29:49 +0530
committerGitHub2019-06-04 12:29:49 +0530
commitfbeca23eefbea81660de45c9fc3ff92e5875d11e (patch)
tree1bdccdb88d2c3a1ad8501f89e438d5bcd95b05a8 /fossee_manim/views.py
parent242b5f0f208839a2d25b55d11bf73f647d9f5201 (diff)
parent6f162fbe10527300ac031f7e66e96309732d4ef7 (diff)
downloadFOSSEE_animations-fbeca23eefbea81660de45c9fc3ff92e5875d11e.tar.gz
FOSSEE_animations-fbeca23eefbea81660de45c9fc3ff92e5875d11e.tar.bz2
FOSSEE_animations-fbeca23eefbea81660de45c9fc3ff92e5875d11e.zip
Merge pull request #23 from Akshen/develop
author credits
Diffstat (limited to 'fossee_manim/views.py')
-rw-r--r--fossee_manim/views.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/fossee_manim/views.py b/fossee_manim/views.py
index d82de00..02992a7 100644
--- a/fossee_manim/views.py
+++ b/fossee_manim/views.py
@@ -33,6 +33,10 @@ try:
except ImportError:
from io import BytesIO as string_io
+__author__ = "Akshen Doke"
+__credits__ = ["Prabhu Ramachandran", "Aditya P.", "KhushalSingh Rajput",
+ "Prathamesh Salunke", "Purusharth Saxsena", "Sharanya Achut"
+ ]
def makepath(proposal_data, reject=None):
if not path.exists(path.join(settings.MEDIA_ROOT,
@@ -80,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):