      weaknesses = models.ManyToManyField(OutfitItem, through='ShoppingWeakness', blank=True)
  
  
  class ShoppingWeakness(models.Model):
      fashionista = models.ForeignKey(Fashionista)
      item = models.ForeignKey(OutfitItem)
  
  # Models for #13510
  
  
  class TitleCollection(models.Model):
 
</s> remove     person = models.OneToOneField(Person, primary_key=True)
 </s> add     person = models.OneToOneField(Person, models.CASCADE, primary_key=True) </s> remove     parent = models.ForeignKey('self', null=True, blank=True)
 </s> add     parent = models.ForeignKey('self', models.SET_NULL, null=True, blank=True) </s> remove     book = models.ForeignKey(BookWithYear)
 </s> add     book = models.ForeignKey(BookWithYear, models.CASCADE) </s> remove     capo_famiglia = models.ForeignKey(CapoFamiglia)
 </s> add     capo_famiglia = models.ForeignKey(CapoFamiglia, models.CASCADE) </s> remove     holder = models.ForeignKey(Holder3)
 </s> add     holder = models.ForeignKey(Holder3, models.CASCADE)
    fashionista = models.ForeignKey(Fashionista, models.CASCADE)
    item = models.ForeignKey(OutfitItem, models.CASCADE)
      weaknesses = models.ManyToManyField(OutfitItem, through='ShoppingWeakness', blank=True)
  
  
  class ShoppingWeakness(models.Model):
    fashionista = models.ForeignKey(Fashionista, models.CASCADE)
    item = models.ForeignKey(OutfitItem, models.CASCADE)
    fashionista = models.ForeignKey(Fashionista, models.CASCADE)
    item = models.ForeignKey(OutfitItem, models.CASCADE)
  
  # Models for #13510
  
  
  class TitleCollection(models.Model):
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_inlines/models.py