#36669: Document `Negative indexing is not supported` for slicing F() 
expressions
-------------------------------------+-------------------------------------
     Reporter:  AJ Collins           |                    Owner:  (none)
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  5.2
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by AJ Collins:

Old description:

> I was planning to use F() expression slicing to take off the last
> character of a field. I was met with `ValueError: Negative indexing is
> not supported.`
>
> I'd like to update the docs for
> https://docs.djangoproject.com/en/6.0/ref/models/expressions/#slicing-f-expressions
>
>  I have a PR ready to go as well

New description:

 I was planning to use F() expression slicing to take off the last
 character of a field. I was met with `ValueError: Negative indexing is not
 supported.`

 I'd like to update the docs for
 
https://docs.djangoproject.com/en/6.0/ref/models/expressions/#slicing-f-expressions

 https://github.com/django/django/pull/19969

--
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36669#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070199ee64d0f9-048b7364-28b8-49ed-9321-942d01304971-000000%40eu-central-1.amazonses.com.

Reply via email to