#32321: Add system checks for invalid model field names for functional indexes
in
Meta.indexes.
-------------------------------------+-------------------------------------
Reporter: Mariusz | Owner: nobody
Felisiak |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: 3.1
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The current system checks don't cover invalid models fields in functional
indexes. This is not straightforward because resolving expressions with
non-existent throws `FieldError`, so we cannot just collect columns from
`Query._gen_cols()`.
I attached tests.
--
Ticket URL: <https://code.djangoproject.com/ticket/32321>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/050.2040c7a15b108c07b93c50ac0e5dddbd%40djangoproject.com.