diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 624f776..ffc3c56 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -54,7 +54,7 @@ question_types = ( ("integer", "Answer in Integer"), ("string", "Answer in String"), ("float", "Answer in Float"), - ("arrange", "Arrange Options in Order"), + ("arrange", "Arrange Options in Correct Order"), ) @@ -1795,7 +1795,7 @@ class AnswerPaper(models.Model): result['error'] = ['Correct answer'] elif question.type == 'arrange': - tc_list = sorted([ids.id for ids in question.get_test_cases()]) + tc_list = sorted([tc.id for tc in question.get_test_cases()]) if user_answer == tc_list: result['success'] = True result['error'] = ['Correct answer'] |