summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormaheshgudi2016-05-11 15:23:28 +0530
committermaheshgudi2016-05-27 12:43:12 +0530
commit85e19a0c1c8dca0a187d151a21927d89a81a7341 (patch)
tree1c03651eccf796f86aa34a3af0368316fe47a116 /yaksh
parent271e3e3eed59642ea6f2365758ca7609ab307f65 (diff)
downloadonline_test-85e19a0c1c8dca0a187d151a21927d89a81a7341.tar.gz
online_test-85e19a0c1c8dca0a187d151a21927d89a81a7341.tar.bz2
online_test-85e19a0c1c8dca0a187d151a21927d89a81a7341.zip
minor changes in redirection for test_mode
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 019b631..5651a80 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -849,7 +849,7 @@ def show_all_questions(request):
trial_paper = test_mode(user, "test_questions", question_ids, None)
trial_paper.update_total_marks()
trial_paper.save()
- return my_redirect("/exam/start/{0}".format(trial_paper.id))
+ return my_redirect("/exam/start/1/{0}".format(trial_paper.id))
questions = Question.objects.filter(user_id=user.id)
@@ -1212,4 +1212,4 @@ def test_mode(user, mode, questions_list=None, quiz_id=None):
def test_quiz(request, mode,quiz_id):
current_user = request.user
trial_questionpaper = test_mode(current_user, mode, None, quiz_id)
- return my_redirect("/exam/start/{0}".format(trial_questionpaper.id)) \ No newline at end of file
+ return my_redirect("/exam/start/1/{0}".format(trial_questionpaper.id)) \ No newline at end of file