From c1314cd9508da24b13b39e287f342c827c879ea7 Mon Sep 17 00:00:00 2001 From: Gowtham Sai <66207607+gowtham3105@users.noreply.github.com> Date: Tue, 8 Nov 2022 23:49:12 +0530 Subject: [PATCH] Sorting students by roll No by default --- CDC_Backend/APIs/adminViews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CDC_Backend/APIs/adminViews.py b/CDC_Backend/APIs/adminViews.py index 9b07f80..e935e8d 100644 --- a/CDC_Backend/APIs/adminViews.py +++ b/CDC_Backend/APIs/adminViews.py @@ -511,7 +511,7 @@ def getStats(request, id, email, user_type): - students = Student.objects.all() + students = Student.objects.all().order_by("roll_no") for student in students.iterator(): applications = PlacementApplication.objects.filter(student=student, selected=True)