From 8939dfcefc151ba41c7cb0a2ed32effab9120b0e Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 11 Oct 2017 15:56:44 +0530 Subject: Add tests to verify the change --- yaksh/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'yaksh/models.py') diff --git a/yaksh/models.py b/yaksh/models.py index e5285ba..6dc8ce2 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1223,8 +1223,9 @@ class AnswerPaper(models.Model): available question. """ if self.questions_order: - all_questions = [int(q_id) - for q_id in self.questions_order.split(',')] + all_questions = [ + int(q_id) for q_id in self.questions_order.split(',') + ] else: all_questions = list(self.questions.all().values_list( 'id', flat=True)) -- cgit