summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/expressions.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index bfd5ddea2c..4dc8d9476a 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -974,12 +974,17 @@ calling the appropriate methods on the wrapped expression.
A hook allowing the expression to coerce ``value`` into a more
appropriate type.
- .. method:: get_group_by_cols()
+ .. method:: get_group_by_cols(alias=None)
Responsible for returning the list of columns references by
this expression. ``get_group_by_cols()`` should be called on any
nested expressions. ``F()`` objects, in particular, hold a reference
- to a column.
+ to a column. The ``alias`` parameter will be ``None`` unless the
+ expression has been annotated and is used for grouping.
+
+ .. versionchanged:: 3.0
+
+ The ``alias`` parameter was added.
.. method:: asc(nulls_first=False, nulls_last=False)