更新时间:2021-06-30 23:17:01
我最终使用了 this 中解释的解决方案@Ahmad 在评论中介绍的帖子中的堆栈溢出答案.
I ended up using the solution explained in this Stack-overflow answer in the post introduced by @Ahmad in comments.
如何在Django的查询集中获取倒数第二条记录?
连接与 Django 中查询集中记录的多行相关的字段