diff options
| author | Simon Charette <charette.s@gmail.com> | 2022-09-28 10:51:06 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-06 12:04:00 +0200 |
| commit | c6350d594c359151ee17b0c4f354bb44f28ff69e (patch) | |
| tree | e01d3ff1213d480eb07e5bd365234576613912ce /docs | |
| parent | b7b28c7c189615543218e81319473888bc46d831 (diff) | |
Refs #30158 -- Removed alias argument for Expression.get_group_by_cols().
Recent refactors allowed GROUP BY aliasing allowed for aliasing to be
entirely handled by the sql.Query.set_group_by and compiler layers.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/expressions.txt | 9 | ||||
| -rw-r--r-- | docs/releases/4.2.txt | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index 95f093e2a3..ccd18670b1 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -1036,13 +1036,16 @@ calling the appropriate methods on the wrapped expression. ``expression`` is the same as ``self``. - .. method:: get_group_by_cols(alias=None) + .. method:: get_group_by_cols() 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. The ``alias`` parameter will be ``None`` unless the - expression has been annotated and is used for grouping. + to a column. + + .. versionchanged:: 4.2 + + The ``alias=None`` keyword argument was removed. .. method:: asc(nulls_first=None, nulls_last=None) diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index 0c5492e125..5a849cbbe5 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -329,6 +329,8 @@ Miscellaneous * The :option:`makemigrations --check` option no longer creates missing migration files. +* The ``alias`` argument for :meth:`.Expression.get_group_by_cols` is removed. + .. _deprecated-features-4.2: Features deprecated in 4.2 |
