  class CarTire(models.Model):
      """
      A single car tire. This to test that a user can only select their own cars.
      """
      car = models.ForeignKey(Car)
  
  
  class Honeycomb(models.Model):
      location = models.CharField(max_length=20)
  
 
</s> remove     honeycomb = models.ForeignKey(Honeycomb)
 </s> add     honeycomb = models.ForeignKey(Honeycomb, models.CASCADE) </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     user = models.OneToOneField(User, primary_key=True)
 </s> add     user = models.OneToOneField(User, models.CASCADE, primary_key=True) </s> remove     car = models.ForeignKey(Car, to_field='make', null=True, related_name='drivers')
 </s> add     car = models.ForeignKey(Car, models.SET_NULL, to_field='make', null=True, related_name='drivers') </s> remove     parent = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
    soulmate = models.ForeignKey('self', null=True, on_delete=models.CASCADE, related_name='soulmates')
 </s> add     parent = models.ForeignKey('self', models.SET_NULL, null=True)
    soulmate = models.ForeignKey('self', models.CASCADE, null=True, related_name='soulmates')
    car = models.ForeignKey(Car, models.CASCADE)
  class CarTire(models.Model):
      """
      A single car tire. This to test that a user can only select their own cars.
      """
    car = models.ForeignKey(Car, models.CASCADE)
  
  
  class Honeycomb(models.Model):
      location = models.CharField(max_length=20)
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_widgets/models.py