summaryrefslogtreecommitdiff
path: root/testapp
diff options
context:
space:
mode:
Diffstat (limited to 'testapp')
-rw-r--r--testapp/exam/views.py2
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}