diff options
author | hardythe1 | 2014-07-02 12:26:00 +0530 |
---|---|---|
committer | hardythe1 | 2014-07-02 12:26:00 +0530 |
commit | c8af24bf0adf393fb2e61bff06b54d00633e16d1 (patch) | |
tree | 13e5e9084ddf0502efc6c1ef96855ab3d2fab848 /testapp/exam | |
parent | 7a6fc986fbc4a857b619764defeda377dd9d3a68 (diff) | |
download | online_test-c8af24bf0adf393fb2e61bff06b54d00633e16d1.tar.gz online_test-c8af24bf0adf393fb2e61bff06b54d00633e16d1.tar.bz2 online_test-c8af24bf0adf393fb2e61bff06b54d00633e16d1.zip |
changes to start the quiz if prerequisite is passed
Diffstat (limited to 'testapp/exam')
-rw-r--r-- | testapp/exam/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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} |