MCPcopy
hub / github.com/django/django / annotate

Method annotate

django/db/models/query.py:1813–1819  ·  django/db/models/query.py::QuerySet.annotate

Return a query set in which the returned objects have been annotated with extra data or aggregations.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1811 return clone
1812
1813 def annotate(self, *args, **kwargs):
1814 class="st">"""
1815 Return a query set in which the returned objects have been annotated
1816 with extra data or aggregations.
1817 class="st">"""
1818 self._not_support_combined_queries(class="st">"annotate")
1819 return self._annotate(args, kwargs, select=True)
1820
1821 def alias(self, *args, **kwargs):
1822 class="st">"""

Calls 2

_annotateMethod · 0.95