      name = models.CharField(max_length=15)
  
  
  class Fashionista(models.Model):
      person = models.OneToOneField(Person, primary_key=True)
      weaknesses = models.ManyToManyField(OutfitItem, through='ShoppingWeakness', blank=True)
  
  
  class ShoppingWeakness(models.Model):
      fashionista = models.ForeignKey(Fashionista)
 
</s> remove     fashionista = models.ForeignKey(Fashionista)
    item = models.ForeignKey(OutfitItem)
 </s> add     fashionista = models.ForeignKey(Fashionista, models.CASCADE)
    item = models.ForeignKey(OutfitItem, models.CASCADE) </s> remove     person = models.ForeignKey(Person, primary_key=True)
 </s> add     person = models.ForeignKey(Person, models.CASCADE, primary_key=True) </s> remove     person = models.OneToOneField(Member, primary_key=True)
    parent = models.ForeignKey(Member, related_name="children")
 </s> add     person = models.OneToOneField(Member, models.CASCADE, primary_key=True)
    parent = models.ForeignKey(Member, models.CASCADE, related_name="children") </s> remove     details = models.OneToOneField(Detail, primary_key=True)
 </s> add     details = models.OneToOneField(Detail, models.CASCADE, primary_key=True) </s> remove     state = models.ForeignKey(State)
 </s> add     state = models.ForeignKey(State, models.CASCADE)
    person = models.OneToOneField(Person, models.CASCADE, primary_key=True)
      name = models.CharField(max_length=15)
  
  
  class Fashionista(models.Model):
    person = models.OneToOneField(Person, models.CASCADE, primary_key=True)
      weaknesses = models.ManyToManyField(OutfitItem, through='ShoppingWeakness', blank=True)
  
  
  class ShoppingWeakness(models.Model):
      fashionista = models.ForeignKey(Fashionista)
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_inlines/models.py