summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraj2s <72272843+aj2s@users.noreply.github.com>2025-10-17 07:20:23 -0700
committerJacob Walls <jacobtylerwalls@gmail.com>2025-10-17 10:22:40 -0400
commit83f6fe810df8558339495ad717e216b14d34f461 (patch)
tree01d294d6957777a403b0eca0ed339ad0017f54e6
parentdc61f205781733f41dd3630f5ca48bccda6c0cbc (diff)
[5.2.x] Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices.
Backport of f715bc8990b5b8a1df948c2b71e8edbdda47e7db from main.
-rw-r--r--docs/ref/models/expressions.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index b745135bfa..b6512bff72 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -192,8 +192,8 @@ Slicing ``F()`` expressions
For string-based fields, text-based fields, and
:class:`~django.contrib.postgres.fields.ArrayField`, you can use Python's
-array-slicing syntax. The indices are 0-based and the ``step`` argument to
-``slice`` is not supported. For example:
+array-slicing syntax. The indices are 0-based. The ``step`` argument to
+``slice`` and negative indexing are not supported. For example:
.. code-block:: pycon