Skip to content

Commit

Permalink
list view in sorted order
Browse files Browse the repository at this point in the history
  • Loading branch information
hrithik-09 committed Jan 2, 2025
1 parent 0f17e91 commit 070e3de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FusionIIIT/applications/academic_procedures/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ def gen_course_list(request):
"name": registration.student_id.id.user.first_name + " " + registration.student_id.id.user.last_name,
"department": registration.student_id.id.department.name
})
verified_students = sorted(verified_students, key=lambda x: x['rollno'])
html = render_to_string('academic_procedures/gen_course_list.html',
{'students': verified_students, 'batch':batch, 'course':course_id}, request)
maindict = {'html': html}
Expand Down

0 comments on commit 070e3de

Please # to comment.