mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).
This commit is contained in:
committed by
Tim Graham
parent
bf26f66029
commit
2162f0983d
@@ -187,6 +187,9 @@ Models
|
||||
|
||||
* Query expressions can now be negated using a minus sign.
|
||||
|
||||
* :meth:`.QuerySet.order_by` and :meth:`distinct(*fields) <.QuerySet.distinct>`
|
||||
now support using field transforms.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -242,6 +245,9 @@ Database backend API
|
||||
* Renamed the ``allow_sliced_subqueries`` database feature flag to
|
||||
``allow_sliced_subqueries_with_in``.
|
||||
|
||||
* ``DatabaseOperations.distinct_sql()`` now requires an additional ``params``
|
||||
argument and returns a tuple of SQL and parameters instead of a SQL string.
|
||||
|
||||
:mod:`django.contrib.gis`
|
||||
-------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user