mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
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.
This commit is contained in:
parent
b7b28c7c18
commit
c6350d594c
9 changed files with 43 additions and 37 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue