summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2025-10-12 12:57:32 -0400
committernessita <124304+nessita@users.noreply.github.com>2025-10-13 10:42:23 -0300
commitedde2891c355103ba455f3fea95cff962e40962c (patch)
treecb2cb921a39d37012b0cc6997708260effdc1440 /django
parent0f75f8f1ff2078cde3c1701851c754b91c6baf44 (diff)
Fixed #36660 -- Fixed a regression in descending Index local field checks.
Regression in 8638d8bf74c1a58302c97d4436ad2eb08438145b. Refs #36273. Thanks Federico Bond for the report.
Diffstat (limited to 'django')
-rw-r--r--django/db/models/indexes.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/django/db/models/indexes.py b/django/db/models/indexes.py
index 176f719fe5..a408506527 100644
--- a/django/db/models/indexes.py
+++ b/django/db/models/indexes.py
@@ -114,7 +114,12 @@ class Index:
)
errors.extend(
model._check_local_fields(
- {*self.fields, *self.include, *references}, "indexes"
+ {
+ *[field for field, _ in self.fields_orders],
+ *self.include,
+ *references,
+ },
+ "indexes",
)
)
# Database-feature checks: