      y = models.ForeignKey('Y')
  
  
  class Y(models.Model):
      x1 = models.ForeignKey(X, related_name='y1')
  
  # Some models with a cycle in the default ordering. This would be bad if we
  # didn't catch the infinite loop.
  
  
 
</s> remove     y = models.ForeignKey('Y')
 </s> add     y = models.ForeignKey('Y', models.CASCADE) </s> remove     y = models.ForeignKey('LoopY')
 </s> add     y = models.ForeignKey('LoopY', models.CASCADE) </s> remove     honeycomb = models.ForeignKey(Honeycomb)
 </s> add     honeycomb = models.ForeignKey(Honeycomb, models.CASCADE) </s> remove model was altered to ``blog = ForeignKey(Blog, related_name='entries')``, the
above example code would look like this::
 </s> add model was altered to ``blog = ForeignKey(Blog, on_delete=models.CASCADE,
related_name='entries')``, the above example code would look like this:: </s> remove             field = models.ForeignKey(Target, related_name='+')
 </s> add             field = models.ForeignKey(Target, models.CASCADE, related_name='+')
    x1 = models.ForeignKey(X, models.CASCADE, related_name='y1')
      y = models.ForeignKey('Y')
  
  
  class Y(models.Model):
    x1 = models.ForeignKey(X, models.CASCADE, related_name='y1')
  
  # Some models with a cycle in the default ordering. This would be bad if we
  # didn't catch the infinite loop.
  
  
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