Skip to content

Typo in avg_child_age example? #17

@mnieber

Description

@mnieber

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions