﻿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
33947	Adding db_index to a field inherited from an Abstract class does not propagate the change to the models subclassing it	awiebe	nobody	"I have a bunch of Models of the form
{{{
#!div style=""font-size: 80%""
  {{{#!python
  class AbstractOwnershipModel(models.Model):
     owner_user= models.ForeignKey('auth.User')
     class Meta:
      abstract = True
 class AnOwnedModel(AbstractOwnershipModel):
   #...
  }}}
}}}

Which I tried to change to
{{{
#!div style=""font-size: 80%""
  {{{#!python
  class AbstractOwnershipModel(models.Model):
     owner_user= models.ForeignKey('auth.User',db_index=True)
     class Meta:
      abstract = True
  }}}
}}}

But makemigrations reports that there are no changes even though I would expect a bunch of indexes to be created."	Uncategorized	closed	Database layer (models, ORM)	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
