  
  class SomeChildModel(models.Model):
      name = models.CharField(max_length=1)
      position = models.PositiveIntegerField()
      parent = models.ForeignKey(SomeParentModel)
  
  # Other models
  
  
  class ProfileCollection(models.Model):
 
</s> remove     content_type = models.ForeignKey(ContentType)
 </s> add     content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove     album1 = models.ForeignKey(Album, related_name="album1_set")
    album2 = models.ForeignKey(Album, related_name="album2_set")
 </s> add     album1 = models.ForeignKey(Album, models.CASCADE, related_name="album1_set")
    album2 = models.ForeignKey(Album, models.CASCADE, related_name="album2_set") </s> remove     teacher = models.ForeignKey(Teacher)
 </s> add     teacher = models.ForeignKey(Teacher, models.CASCADE) </s> remove     parent = models.ForeignKey(UUIDPKParent)
 </s> add     parent = models.ForeignKey(UUIDPKParent, models.CASCADE) </s> remove     parent = models.ForeignKey(UUIDPKParent)
 </s> add     parent = models.ForeignKey(UUIDPKParent, models.CASCADE)
    parent = models.ForeignKey(SomeParentModel, models.CASCADE)
  
  class SomeChildModel(models.Model):
      name = models.CharField(max_length=1)
      position = models.PositiveIntegerField()
    parent = models.ForeignKey(SomeParentModel, models.CASCADE)
  
  # Other models
  
  
  class ProfileCollection(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