  
  @python_2_unicode_compatible
  class ManagedModel(models.Model):
      data = models.CharField(max_length=10)
      tag = models.ForeignKey(Tag)
      public = models.BooleanField(default=True)
  
      objects = CustomManager()
      normal_manager = models.Manager()
  
 
</s> remove     tag = models.ForeignKey(Tag)
 </s> add     tag = models.ForeignKey(Tag, models.CASCADE) </s> remove     related = models.ForeignKey(RelatedModel)
 </s> add     related = models.ForeignKey(RelatedModel, models.CASCADE) </s> remove     related = models.OneToOneField(RelatedModel)
 </s> add     related = models.OneToOneField(RelatedModel, models.CASCADE) </s> remove     details = models.OneToOneField(Detail, primary_key=True)
 </s> add     details = models.OneToOneField(Detail, models.CASCADE, primary_key=True) </s> remove     owner = models.ForeignKey(Collector)
 </s> add     owner = models.ForeignKey(Collector, models.CASCADE)
    tag = models.ForeignKey(Tag, models.CASCADE)
  
  @python_2_unicode_compatible
  class ManagedModel(models.Model):
      data = models.CharField(max_length=10)
    tag = models.ForeignKey(Tag, models.CASCADE)
      public = models.BooleanField(default=True)
  
      objects = CustomManager()
      normal_manager = models.Manager()
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/queries/models.py