之前的orm的group by方法在django 1.8 中已经不能使用,需要利用annotate来实现。 第一个values用来选中需要用来group by的字段(此处group by ...
確定! 回上一頁