diff options
author | maheshgudi | 2017-10-13 14:57:35 +0530 |
---|---|---|
committer | mahesh | 2017-10-20 11:51:47 +0530 |
commit | 90e8295819f606bcf794a5bcd521b4ef08cb98e0 (patch) | |
tree | 031b337be7d8d6b3e01583351be3c98b1b6cdc6b /yaksh | |
parent | 4e7d09eae252c6d89d2fecfe18ffce46e4421eb0 (diff) | |
download | online_test-90e8295819f606bcf794a5bcd521b4ef08cb98e0.tar.gz online_test-90e8295819f606bcf794a5bcd521b4ef08cb98e0.tar.bz2 online_test-90e8295819f606bcf794a5bcd521b4ef08cb98e0.zip |
Sort students' name in grade user in alphabetical order
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index f7d9906..3fcfa39 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1097,6 +1097,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): |