              f_id = models.IntegerField()
  
          class Child(Parent):
              # This field clashes with parent "f_id" field.
              f = models.ForeignKey(Target)
  
          errors = Child.check()
          expected = [
              Error(
                  "The field 'f' clashes with the field 'f_id' "
 
</s> remove             fk = models.ForeignKey(Target)
 </s> add             fk = models.ForeignKey(Target, models.CASCADE) </s> remove             field = models.ForeignKey(Target, related_name='+')
 </s> add             field = models.ForeignKey(Target, models.CASCADE, related_name='+') </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, 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)
            f = models.ForeignKey(Target, models.CASCADE)
              f_id = models.IntegerField()
  
          class Child(Parent):
              # This field clashes with parent "f_id" field.
            f = models.ForeignKey(Target, models.CASCADE)
  
          errors = Child.check()
          expected = [
              Error(
                  "The field 'f' clashes with the field 'f_id' "
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