This is because .annotate() with more than one Count() is buggy - see https://docs.djangoproject.com/en/3.0/topics/db/aggregation/#combining-multiple-aggregations and https://code.djangoproject.com/ticket/10060
This was introduced in 678f4b8b9549108c8dd49af6734f50c6671ffb80
This is because .annotate() with more than one Count() is buggy - see https:/ /docs.djangopro ject.com/ en/3.0/ topics/ db/aggregation/ #combining- multiple- aggregations and https:/ /code.djangopro ject.com/ ticket/ 10060
This was introduced in 678f4b8b9549108 c8dd49af6734f50 c6671ffb80