diff options
author | maheshgudi | 2017-10-04 21:26:12 +0530 |
---|---|---|
committer | maheshgudi | 2017-10-04 21:27:24 +0530 |
commit | 88a37e73cabe8f396631132b2cffdddd5bcae17f (patch) | |
tree | 4069c6a7f48293f1beea81101622e145b441da91 /yaksh/models.py | |
parent | ba817cda209787e4bc959aac8d16726a8aea1ed9 (diff) | |
download | online_test-88a37e73cabe8f396631132b2cffdddd5bcae17f.tar.gz online_test-88a37e73cabe8f396631132b2cffdddd5bcae17f.tar.bz2 online_test-88a37e73cabe8f396631132b2cffdddd5bcae17f.zip |
User can see previously submitted answers for non code questions
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 0d67397..49e028b 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1308,8 +1308,7 @@ class AnswerPaper(models.Model): return self.time_left() > 0 def get_previous_answers(self, question): - if question.type == 'code': - return self.answers.filter(question=question).order_by('-id') + return self.answers.filter(question=question).order_by('-id') def validate_answer(self, user_answer, question, json_data=None, uid=None): """ |