  
  class Picture(models.Model):
      name = models.CharField(max_length=100)
      image = models.FileField(storage=temp_storage, upload_to='test_upload')
      gallery = models.ForeignKey(Gallery, related_name="pictures")
  
  
  class Language(models.Model):
      iso = models.CharField(max_length=5, primary_key=True)
      name = models.CharField(max_length=50)
 
</s> remove     owner = models.ForeignKey(Collector)
 </s> add     owner = models.ForeignKey(Collector, models.CASCADE) </s> remove     owner = models.ForeignKey(Collector)
 </s> add     owner = models.ForeignKey(Collector, models.CASCADE) </s> remove     details = models.OneToOneField(Detail, primary_key=True)
 </s> add     details = models.OneToOneField(Detail, models.CASCADE, primary_key=True) </s> remove     person = models.ForeignKey(Person, primary_key=True)
 </s> add     person = models.ForeignKey(Person, models.CASCADE, primary_key=True) </s> remove     parent = models.ForeignKey(UUIDPKParent)
 </s> add     parent = models.ForeignKey(UUIDPKParent, models.CASCADE)
    gallery = models.ForeignKey(Gallery, models.CASCADE, related_name="pictures")
  
  class Picture(models.Model):
      name = models.CharField(max_length=100)
      image = models.FileField(storage=temp_storage, upload_to='test_upload')
    gallery = models.ForeignKey(Gallery, models.CASCADE, related_name="pictures")
  
  
  class Language(models.Model):
      iso = models.CharField(max_length=5, primary_key=True)
      name = models.CharField(max_length=50)
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_views/models.py