diff options
author | ankitjavalkar | 2020-09-14 11:54:21 +0530 |
---|---|---|
committer | GitHub | 2020-09-14 11:54:21 +0530 |
commit | 6f5cefcd6614b53285f0747f940c64b97e3783cb (patch) | |
tree | ea8a8f155b08f74267e5ecb19a4f156b88997bd9 /yaksh/models.py | |
parent | 23bf46ac2e262ceb373388196962a0bec048c6cb (diff) | |
parent | 4f09013487e17e40b8fd14a3e4c574702c302fbb (diff) | |
download | online_test-6f5cefcd6614b53285f0747f940c64b97e3783cb.tar.gz online_test-6f5cefcd6614b53285f0747f940c64b97e3783cb.tar.bz2 online_test-6f5cefcd6614b53285f0747f940c64b97e3783cb.zip |
Merge pull request #754 from ankitjavalkar/get_distinct_answered
Fetch only distinct answered questions
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 84cad1e..aa0b916 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -2332,7 +2332,7 @@ class AnswerPaper(models.Model): return self.questions.filter(active=True) def get_questions_answered(self): - return self.questions_answered.all() + return self.questions_answered.all().distinct() def get_questions_unanswered(self): return self.questions_unanswered.all() |