Skip to content

Glossary: Django Beyond the Basics

aggregate()

Also written: aggregate

A QuerySet method that turns the whole QuerySet into one summary dictionary, such as the shop's total revenue. The database does the math.

Where the book teaches it

Related terms

annotate()F expression