  
  
  class Chapter(models.Model):
      name = models.CharField(max_length=40)
      novel = models.ForeignKey(Novel)
  
  
  class FootNote(models.Model):
      """
      Model added for ticket 19838
 
</s> remove     chapter = models.ForeignKey(Chapter, on_delete=models.PROTECT)
 </s> add     chapter = models.ForeignKey(Chapter, models.PROTECT) </s> remove     poll = models.ForeignKey(Poll)
 </s> add     poll = models.ForeignKey(Poll, models.CASCADE) </s> remove     holder = models.ForeignKey(Holder3)
 </s> add     holder = models.ForeignKey(Holder3, models.CASCADE) </s> remove     swallow = models.OneToOneField(Swallow)
 </s> add     swallow = models.OneToOneField(Swallow, models.CASCADE) </s> remove     parent = models.ForeignKey(ParentWithDependentChildren)
 </s> add     parent = models.ForeignKey(ParentWithDependentChildren, models.CASCADE)
    novel = models.ForeignKey(Novel, models.CASCADE)
  
  
  class Chapter(models.Model):
      name = models.CharField(max_length=40)
    novel = models.ForeignKey(Novel, models.CASCADE)
  
  
  class FootNote(models.Model):
      """
      Model added for ticket 19838
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