[Answer]-Django annotate is generating an incorrect GROUP BY statement

1👍

I figured it out. I needed Count('review__applicant') instead of Count('review'). I figured out that those extra GROUP BY statements really have no effect, as they are in the SELECT clause as well.

Leave a comment