#36660: False-positive E012 check error when index contains descending order field
-------------------------------------+-------------------------------------
Reporter: Federico Bond | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 6.0
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* owner: (none) => Simon Charette
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
* status: new => assigned
Comment:
Thank you for the report!
Confirmed to be a regression caused by
8638d8bf74c1a58302c97d4436ad2eb08438145b's (#36273) lack of
`fields_orders` usage ([
https://github.com/django/django/pull/19395/files
#diff-
1c8b882c73bfda668d5451d4578c97191b0ebc0f088d0c0ba2296ab89b428c44L2199
before] and [
https://github.com/django/django/pull/19395/files#diff-
0b5bafe2c73718e1b80cd140411dfa403e1b04880ddfba4a7065b9eac5f740c9R117
after]) when calling `_check_local_fields`.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36660#comment:1>