QuerySet API reference | Django documentation | Django
docs.djangoproject.com › en › 4annotate() ¶ annotate(*args, **kwargs)¶. Annotates each object in the QuerySet with the provided list of query expressions.An expression may be a simple value, a reference to a field on the model (or any related models), or an aggregate expression (averages, sums, etc.) that has been computed over the objects that are related to the objects in the QuerySet.