summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authormahesh2017-09-01 15:55:15 +0530
committermahesh2017-09-01 15:55:15 +0530
commitef1e14e19f8bf0c1f075253a71ead98742b3f4d8 (patch)
treeba60e55f730d71e4b2e55e3bddbc1efa825736ed /yaksh/models.py
parentce21ae0cf3ea3541d588b30c0ae1c56d64c82e1d (diff)
downloadonline_test-ef1e14e19f8bf0c1f075253a71ead98742b3f4d8.tar.gz
online_test-ef1e14e19f8bf0c1f075253a71ead98742b3f4d8.tar.bz2
online_test-ef1e14e19f8bf0c1f075253a71ead98742b3f4d8.zip
Adds test case to check if multiple answerpapers for same arguments are not created.
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
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: