﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36660	False-positive E012 check error when index contains descending order field	Federico Bond	Simon Charette	"When a model has an index defined like this:

{{{
class Meta:
    indexes = [models.Index(fields=[""foo"", ""-bar""])]
}}}

The system check framework in 6.0a1 will now report the following error:


{{{
foo.FooModel: (models.E012) 'indexes' refers to the nonexistent field '-bar'.
}}}

Tested with Django 6.0a1. This was not happening in 5.2. Might have something to do with these [https://github.com/django/django/commit/8638d8bf74c1a58302c97d4436ad2eb08438145b changes] but I'm not sure."	Bug	closed	Database layer (models, ORM)	6.0	Release blocker	fixed		Federico Bond	Ready for checkin	1	0	0	0	0	0
