diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 787daa6..e5285ba 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1215,10 +1215,7 @@ class AnswerPaper(models.Model): self.questions_answered.add(question_id) self.questions_unanswered.remove(question_id) - next_question = self.next_question(question_id) - if next_question and next_question.id == int(question_id): - return None - return next_question + return self.next_question(question_id) def next_question(self, question_id): """ |