1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

[6.0.x] Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices.

Backport of f715bc8990 from main.
This commit is contained in:
aj2s
2025-10-17 07:20:23 -07:00
committed by Jacob Walls
parent 887e897287
commit fa772f4014

View File

@@ -182,8 +182,8 @@ Slicing ``F()`` expressions
For string-based fields, text-based fields, and For string-based fields, text-based fields, and
:class:`~django.contrib.postgres.fields.ArrayField`, you can use Python's :class:`~django.contrib.postgres.fields.ArrayField`, you can use Python's
array-slicing syntax. The indices are 0-based and the ``step`` argument to array-slicing syntax. The indices are 0-based. The ``step`` argument to
``slice`` is not supported. For example: ``slice`` and negative indexing are not supported. For example:
.. code-block:: pycon .. code-block:: pycon