From c8af24bf0adf393fb2e61bff06b54d00633e16d1 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Wed, 2 Jul 2014 12:26:00 +0530 Subject: changes to start the quiz if prerequisite is passed --- testapp/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapp') diff --git a/testapp/exam/views.py b/testapp/exam/views.py index 8b251a0..3e11ed5 100644 --- a/testapp/exam/views.py +++ b/testapp/exam/views.py @@ -171,7 +171,7 @@ def intro(request, questionpaper_id): if quest_paper.quiz.prerequisite: try: answer_paper = AnswerPaper.objects.get( - quest_paper.quiz.id=quest_paper.quiz.prerequisite.id, + quest_paper.quiz=quest_paper.quiz.prerequisite, user=user) if answer_paper.passed: context = {'user': user, 'paper_id': questionpaper_id} -- cgit