handling get requests in performance

parent 5db69be0
...@@ -676,7 +676,7 @@ def student_results(request): ...@@ -676,7 +676,7 @@ def student_results(request):
test_ID = 0 test_ID = 0
if request.method == "GET": if request.method == "GET":
return redirect("/arfa") return render(request, 'ARFA_app/home.html')
if request.method == "POST": if request.method == "POST":
test_ID = request.POST["test_ID"] test_ID = request.POST["test_ID"]
...@@ -721,7 +721,7 @@ def student_responses(request): ...@@ -721,7 +721,7 @@ def student_responses(request):
test_ID = 0 test_ID = 0
if request.method == "GET": if request.method == "GET":
return redirect('/arfa') return render(request, 'ARFA_app/home.html')
if request.method == "POST": if request.method == "POST":
test_ID = request.POST["test_ID"] test_ID = request.POST["test_ID"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment