Skip to content

Glossary: Django Beyond the Basics

annotate()

Also written: annotate

A QuerySet method that adds a computed value to each row or group, such as total units per product. Put `.values()` before it to say what to group by.

Where the book teaches it

Related terms

aggregate()F expressionvalues()