          class Target(models.Model):
              pass
  
          class Model(models.Model):
              fk = models.ForeignKey(Target)
              fk_id = models.IntegerField()
  
          errors = Model.check()
          expected = [
              Error(
 
</s> remove             f = models.ForeignKey(Target)
 </s> add             f = models.ForeignKey(Target, models.CASCADE) </s> remove             check = models.ForeignKey(ModelWithRelatedManagerCalledCheck)
            article = models.ForeignKey(ModelWithRelatedManagerCalledCheck, related_name='check')
 </s> add             check = models.ForeignKey(ModelWithRelatedManagerCalledCheck, models.CASCADE)
            article = models.ForeignKey(
                ModelWithRelatedManagerCalledCheck,
                models.CASCADE,
                related_name='check',
            ) </s> remove             person = models.ForeignKey(Person)
            group = models.ForeignKey(Group)
 </s> add             person = models.ForeignKey(Person, models.CASCADE)
            group = models.ForeignKey(Group, models.CASCADE) </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove             field = models.ForeignKey(Target, related_name='+')
 </s> add             field = models.ForeignKey(Target, models.CASCADE, related_name='+')
            fk = models.ForeignKey(Target, models.CASCADE)
          class Target(models.Model):
              pass
  
          class Model(models.Model):
            fk = models.ForeignKey(Target, models.CASCADE)
              fk_id = models.IntegerField()
  
          errors = Model.check()
          expected = [
              Error(
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/invalid_models_tests/test_models.py