How to sort a queryset based on a foreign key field?
How to sort a queryset based on a foreign key field? Question: This is a contest system project. I have these models and I know the contest_id and problem_id. I’m trying to return a queryset that contains users who have solved a problem. A user who solves a problem is the one whose submission’s score …