mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #33543 -- Made Expression.asc()/desc() and OrderBy raise ValueError when nulls_first/nulls_last=False is passed.
Per deprecation timeline.
This commit is contained in:
parent
98756c685e
commit
94ad46e9d8
4 changed files with 10 additions and 34 deletions
|
@ -1063,11 +1063,6 @@ calling the appropriate methods on the wrapped expression.
|
|||
``nulls_first`` and ``nulls_last`` define how null values are sorted.
|
||||
See :ref:`using-f-to-sort-null-values` for example usage.
|
||||
|
||||
.. deprecated:: 4.1
|
||||
|
||||
Passing ``nulls_first=False`` or ``nulls_last=False`` to ``asc()``
|
||||
is deprecated. Use ``None`` instead.
|
||||
|
||||
.. method:: desc(nulls_first=None, nulls_last=None)
|
||||
|
||||
Returns the expression ready to be sorted in descending order.
|
||||
|
@ -1075,11 +1070,6 @@ calling the appropriate methods on the wrapped expression.
|
|||
``nulls_first`` and ``nulls_last`` define how null values are sorted.
|
||||
See :ref:`using-f-to-sort-null-values` for example usage.
|
||||
|
||||
.. deprecated:: 4.1
|
||||
|
||||
Passing ``nulls_first=False`` or ``nulls_last=False`` to ``desc()``
|
||||
is deprecated. Use ``None`` instead.
|
||||
|
||||
.. method:: reverse_ordering()
|
||||
|
||||
Returns ``self`` with any modifications required to reverse the sort
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue