mirror of
https://github.com/django/django.git
synced 2025-10-21 12:49:11 +00:00
Fixed #36669 -- Doc'd that negative indexes are not supported in F() slices.
This commit is contained in:
parent
d980d68609
commit
f715bc8990
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user