  
  # Regression for #13368. This is an example of a model
  # that imports a class that has an abstract base class.
  class UserProfile(models.Model):
      user = models.OneToOneField(User, primary_key=True)
 
</s> remove     reporter = models.ForeignKey(ProxyTrackerUser)
    associated_bug = models.ForeignKey(ProxyProxyBug)
 </s> add     reporter = models.ForeignKey(ProxyTrackerUser, models.CASCADE)
    associated_bug = models.ForeignKey(ProxyProxyBug, models.CASCADE) </s> remove         cat = models.ForeignKey(Category)
 </s> add         cat = models.ForeignKey(Category, models.CASCADE) </s> remove     car = models.ForeignKey(Car)
 </s> add     car = models.ForeignKey(Car, models.CASCADE) </s> remove         author = models.ForeignKey(Person)
 </s> add         author = models.ForeignKey(Person, on_delete=models.CASCADE)
    user = models.OneToOneField(User, models.CASCADE, primary_key=True)
  
  # Regression for #13368. This is an example of a model
  # that imports a class that has an abstract base class.
  class UserProfile(models.Model):
    user = models.OneToOneField(User, models.CASCADE, primary_key=True)
keep keep keep keep replace
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_scripts/app_with_import/models.py