diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 591f0e4..56cced8 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -858,7 +858,7 @@ class QuestionPaper(models.Model): ans_paper = AnswerPaper.objects.filter(user=user, attempt_number=attempt_num, question_paper=self - ).order_by['-id'] + ).order_by('-id') if ans_paper: ans_paper = ans_paper[0] else: |