summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
authorHardik Ghaghada2013-07-03 16:37:57 +0530
committerHardik Ghaghada2013-07-03 16:37:57 +0530
commit156bb47ecebcca190683b8e59f917a5b742d11fd (patch)
treef163bf0a905a52eb7e7016593cec21edb2a56e9c /testapp
parent2ad3d7977ae9a62255901ae2133f6c3570ad3016 (diff)
downloadonline_test-156bb47ecebcca190683b8e59f917a5b742d11fd.tar.gz
online_test-156bb47ecebcca190683b8e59f917a5b742d11fd.tar.bz2
online_test-156bb47ecebcca190683b8e59f917a5b742d11fd.zip
corrected a small malfunction
Diffstat (limited to 'testapp')
-rw-r--r--testapp/exam/views.py2
-rw-r--r--testapp/templates/exam/question.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py
index 06da6d6..e2ff763 100644
--- a/testapp/exam/views.py
+++ b/testapp/exam/views.py
@@ -810,6 +810,8 @@ def complete(request, reason=None, answerpaper_id=None):
you answered all the questions correctly.\
You have been logged out successfully,\
Thank You !"}
+ logout(request)
+ return my_render_to_response('exam/complete.html',context)
else:
context = {'message': reason}
logout(request)
diff --git a/testapp/templates/exam/question.html b/testapp/templates/exam/question.html
index 1282130..7260d15 100644
--- a/testapp/templates/exam/question.html
+++ b/testapp/templates/exam/question.html
@@ -92,7 +92,7 @@ function update_time()
{% endfor %}
{% else %}
- <textarea tabindex=1 rows="3" style="width:750px;margin-bottom:15px;height:auto;" readonly=yes name="snippet" id="snippet" wrap="off">{% if last_attempt %}{{question.snippet}}{% else %}{% if question.type == "bash" %} #!/bin/bash{% else %} #To avoid errors use tabs for indentation for Python questions &#13;&#10; {{ question.snippet }}{% endif %}{% endif %}</textarea>
+ <textarea tabindex=1 rows="3" style="width:750px;margin-bottom:15px;height:auto;" readonly=yes name="snippet" id="snippet" wrap="off">{% if last_attempt %}{{ question.snippet }}{% else %}{% if question.type == "bash" %} #!/bin/bash&#13;&#10;{{ question.snippet }}{% else %}{{ question.snippet }}{% endif %}{% endif %}</textarea>
<textarea tabindex=1 rows="10" style="width:750px;margin-bottom:10px;" name="answer" id="answer" wrap="off" onkeydown="return catchTab(this,event)">{% if last_attempt %}{{last_attempt}}{% else %}{% if question.type == "bash" %}{% else %}{% endif %}{% endif %}</textarea>
<br>