aggregate(Max(books_per_rating))
>
> I get a *DatabaseError*.
>
> According to this
> https://docs.djangoproject.com/en/1.5/topics/db/aggregation/#aggregating-annotations,
>
> Django supports aggregating annotations. But in the example given in the
> link itself, they annotate ove
'id')).aggregate(Max(books_per_rating))
>>
>> I get a *DatabaseError*.
>>
>> According to this
>> https://docs.djangoproject.com/en/1.5/topics/db/aggregation/#aggregating-annotations,
>>
>> Django supports aggregating annotations. But in the examp
bjects.values('rating').annotate(books_per_rating=Count('id')).aggregate(Max(books_per_rating))
>
> I get a *DatabaseError*.
>
> According to this
> https://docs.djangoproject.com/en/1.5/topics/db/aggregation/#aggregating-annotations,
>
> Django supports agg
>
> and I run the query:
>
> Book.objects.values('rating').annotate(books_per_rating=Count('id')).aggregate(Max(books_per_rating))
>
> I get a *DatabaseError*.
>
> According to this
> https://docs.djangoproject.com/en/1.5/topics/db/aggregation/#aggrega
:
Book.objects.values('rating').annotate(books_per_rating=Count('id')).aggregate(Max(books_per_rating))
I get a *DatabaseError*.
According to this
https://docs.djangoproject.com/en/1.5/topics/db/aggregation/#aggregating-annotations,
Django supports aggregating annotations. But in
5 matches
Mail list logo