summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormaheshgudi2017-10-13 14:57:35 +0530
committermaheshgudi2017-10-13 14:57:35 +0530
commit964506a34c92f2c8b0c6a926bd9615fa9cfa36c0 (patch)
treedd5da0af9ad40c90e0189b4a684cd0b586e6cf09 /yaksh
parent97a277cf5b86f60525f94302d5b04de420ad7212 (diff)
downloadonline_test-964506a34c92f2c8b0c6a926bd9615fa9cfa36c0.tar.gz
online_test-964506a34c92f2c8b0c6a926bd9615fa9cfa36c0.tar.bz2
online_test-964506a34c92f2c8b0c6a926bd9615fa9cfa36c0.zip
Sort students' name in grade user in alphabetical order
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 787daa6..4c15fce 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1094,6 +1094,7 @@ class AnswerPaperManager(models.Manager):
def get_users_for_questionpaper(self, questionpaper_id):
return self._get_answerpapers_for_quiz(questionpaper_id, status=True)\
.values("user__id", "user__first_name", "user__last_name")\
+ .order_by("user__first_name")\
.distinct()
def get_user_all_attempts(self, questionpaper, user):