From 7f02a678b6bb4b5ad99022168109b0bb44e0e9d1 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 2 Apr 2019 15:22:58 +0530 Subject: Change AnswerPaper passing condition check --- yaksh/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/models.py') diff --git a/yaksh/models.py b/yaksh/models.py index 7a40fae..f9dda45 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -548,7 +548,7 @@ class Quiz(models.Model): user=user, course=course, question_paper=qp ).order_by("-attempt_number") if ans_ppr.exists(): - return ans_ppr.first().passed + return any([paper.passed for paper in ans_ppr]) return False def _create_quiz_copy(self, user): -- cgit