Aggregation using the aggregate() function on a queryset returns a dictionary, not a queryset. q = Movie.objects.aggregate(Count('title')) q {'title__count': 2}.
確定! 回上一頁