Opened 2 days ago

Last modified 34 hours ago

#36669 closed Cleanup/optimization

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

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

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

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top