From 88a37e73cabe8f396631132b2cffdddd5bcae17f Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Wed, 4 Oct 2017 21:26:12 +0530 Subject: User can see previously submitted answers for non code questions --- yaksh/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yaksh/models.py') 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): """ -- cgit