阅读背景:

在Django ORM中使用“extra”子句时避免重复的select语句

来源:互联网 

I need to be able to retrieve a sum of related records for display purposes, and also order by the sum of the counts of three related models. Currently, I'm solving this by using an "extra" clause:I need to be able to retrieve a sum of related




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: