mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #29049 -- Added slicing notation to F expressions.
Co-authored-by: Priyansh Saxena <askpriyansh@gmail.com> Co-authored-by: Niclas Olofsson <n@niclasolofsson.se> Co-authored-by: David Smith <smithdc@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Abhinav Yadav <abhinav.sny.2002@gmail.com>
This commit is contained in:
@@ -184,6 +184,14 @@ Models
|
||||
* :meth:`.QuerySet.order_by` now supports ordering by annotation transforms
|
||||
such as ``JSONObject`` keys and ``ArrayAgg`` indices.
|
||||
|
||||
* :class:`F() <django.db.models.F>` and :class:`OuterRef()
|
||||
<django.db.models.OuterRef>` expressions that output
|
||||
:class:`~django.db.models.CharField`, :class:`~django.db.models.EmailField`,
|
||||
:class:`~django.db.models.SlugField`, :class:`~django.db.models.URLField`,
|
||||
:class:`~django.db.models.TextField`, or
|
||||
:class:`~django.contrib.postgres.fields.ArrayField` can now be :ref:`sliced
|
||||
<slicing-using-f>`.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user