  
  
  class ReadOnlyInline(models.Model):
      name = models.CharField(max_length=100, help_text='Help text for ReadOnlyInline')
      capo_famiglia = models.ForeignKey(CapoFamiglia)
  
  
  # Models for #18433
  
  class ParentModelWithCustomPk(models.Model):
 
</s> remove     capo_famiglia = models.ForeignKey(CapoFamiglia, related_name='+')
 </s> add     capo_famiglia = models.ForeignKey(CapoFamiglia, models.CASCADE, related_name='+') </s> remove     capo_famiglia = models.ForeignKey(CapoFamiglia, related_name='+')
 </s> add     capo_famiglia = models.ForeignKey(CapoFamiglia, models.CASCADE, related_name='+') </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     holder = models.ForeignKey(Holder4)
 </s> add     holder = models.ForeignKey(Holder4, models.CASCADE) </s> remove     et = models.ForeignKey(ExtraTerrestrial)
 </s> add     et = models.ForeignKey(ExtraTerrestrial, models.CASCADE)
    capo_famiglia = models.ForeignKey(CapoFamiglia, models.CASCADE)
  
  
  class ReadOnlyInline(models.Model):
      name = models.CharField(max_length=100, help_text='Help text for ReadOnlyInline')
    capo_famiglia = models.ForeignKey(CapoFamiglia, models.CASCADE)
  
  
  # Models for #18433
  
  class ParentModelWithCustomPk(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