DRF order by custom field (non-model) in serializers

前端 未结 0 1575
遇见更好的自我
遇见更好的自我 2021-02-04 18:45

I am trying to sort objects based on custom field but cannot find how to do it. The queryset must include car objects sorted by number of ratings. For instance, car1 has 3 rates

相关标签:
回答
  • 消灭零回复
提交回复
热议问题