  
  
  class Inner3(models.Model):
      dummy = models.IntegerField()
      holder = models.ForeignKey(Holder3)
  
  # Models for ticket #8190
  
  
  class Holder4(models.Model):
 
</s> remove     holder = models.ForeignKey(Holder4)
 </s> add     holder = models.ForeignKey(Holder4, models.CASCADE) </s> remove     holder = models.ForeignKey(Holder2)
 </s> add     holder = models.ForeignKey(Holder2, models.CASCADE) </s> remove     holder = models.ForeignKey(Holder)
 </s> add     holder = models.ForeignKey(Holder, models.CASCADE) </s> remove     holder = models.ForeignKey(Holder4)
 </s> add     holder = models.ForeignKey(Holder4, models.CASCADE) </s> remove     chapter = models.ForeignKey(Chapter, on_delete=models.PROTECT)
 </s> add     chapter = models.ForeignKey(Chapter, models.PROTECT)
    holder = models.ForeignKey(Holder3, models.CASCADE)
  
  
  class Inner3(models.Model):
      dummy = models.IntegerField()
    holder = models.ForeignKey(Holder3, models.CASCADE)
  
  # Models for ticket #8190
  
  
  class Holder4(models.Model):
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