mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #7098 -- Deprecated passing raw column aliases to order_by().
Now that order_by() has expression support passing RawSQL() can achieve the same result. This was also already supported through QuerySet.extra(order_by) for years but this API is more or less deprecated at this point.
This commit is contained in:
parent
4237050684
commit
98ea4f0f46
4 changed files with 44 additions and 4 deletions
|
@ -678,6 +678,10 @@ Miscellaneous
|
|||
:class:`~django.views.generic.base.TemplateView` is deprecated. Reference
|
||||
them in the template with ``view.kwargs`` instead.
|
||||
|
||||
* Passing raw column aliases to :meth:`.QuerySet.order_by` is deprecated. The
|
||||
same result can be achieved by passing aliases in a
|
||||
:class:`~django.db.models.expressions.RawSQL` instead beforehand.
|
||||
|
||||
.. _removed-features-3.1:
|
||||
|
||||
Features removed in 3.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue