django-sql-utils icon indicating copy to clipboard operation
django-sql-utils copied to clipboard

Typo in avg_child_age example?

Open mnieber opened this issue 1 year ago • 0 comments

Hi, this library looks very nice.

I have a question about the last example:

Parent.objects.annotate(avg_child_age=SubqueryArrayAgg('child__age'))

Is there a typo here? I don't understand how this would compute the average. If there is a typo or mistake, I'd be interested to know the correct solution.

mnieber avatar May 10 '24 19:05 mnieber