Opened 2 days ago

Last modified 34 hours ago

#36669 closed Cleanup/optimization

Document `Negative indexing is not supported` for slicing F() expressions — at Version 1

Reported by: AJ Collins Owned by:
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: AJ Collins Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by AJ Collins)

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

Change History (1)

comment:1 by AJ Collins, 2 days ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top