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:
parent
887e897287
commit
fa772f4014
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user