1
0
mirror of https://github.com/django/django.git synced 2025-10-20 20:29:14 +00:00

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

Backport of f715bc8990b5b8a1df948c2b71e8edbdda47e7db 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
: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