﻿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
2350	ManyToManyField and db_index	Rudolph Froger	nobody	"Hi,

When combining a db_index with a ManyToManyField, the db_index is ignored, while an index should be made on the corresponding column in the ManyToMany table. One could even agrue that it allways makes sense to put indexes on both sides of the a ManyToMany table, but that would be to much magic: explicit is better than implicit. Anyhow:


{{{
class Foo(models.Model):
    users = ManyToManyField(User, db_index=True)
}}}

Doesn't give indexes and doesn't warn you that no index will be created."	defect	closed	Database layer (models, ORM)	dev	normal	wontfix			Design decision needed	0	0	0	0	0	0
