0👍
✅
As far as i know, there is a hack
You can make a manager method like
class SomeManagerSet(models.QuerySet):
def ordered(self):
return self.order_by("id")
And activate it in model via
objects = SomeManagerSet.as_manager()
And then use in related query like subject.course_set.ordered()
Source:stackexchange.com