Modelname.objects.filter(student__in=malerep).order_by('-Votes','-student__Percentage')
在这里,我想专门获得票数最多的学生。我想做的是,获取参加选举并获得一些选票的学生名单,然后根据他们获得的票数对他们进行排序。Now if i can access the first object in this list , i can make necessary modifications for the student in the database who won the election and also get the details of the rest. 我被困在这一点上。请帮忙
提前谢谢。