From fa772f4014a57158c77f0f7b33cffba96dff1d04 Mon Sep 17 00:00:00 2001 From: aj2s <72272843+aj2s@users.noreply.github.com> Date: Fri, 17 Oct 2025 07:20:23 -0700 Subject: [PATCH] [6.0.x] Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices. Backport of f715bc8990b5b8a1df948c2b71e8edbdda47e7db from main. --- docs/ref/models/expressions.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index a1b8984a9b..b1453c9e70 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -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