          class ModelWithRelatedManagerCalledCheck(models.Model):
              pass
  
          class ModelWithDescriptorCalledCheck(models.Model):
              check = models.ForeignKey(ModelWithRelatedManagerCalledCheck)
              article = models.ForeignKey(ModelWithRelatedManagerCalledCheck, related_name='check')
  
          errors = checks.run_checks()
          expected = [
              Error(
                  "The 'ModelWithAttributeCalledCheck.check()' class method is "
 
</s> remove             fk = models.ForeignKey(Target)
 </s> add             fk = models.ForeignKey(Target, models.CASCADE) </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             f = models.ForeignKey(Target)
 </s> add             f = models.ForeignKey(Target, models.CASCADE) </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove     article = models.ForeignKey('indexes.Article')
 </s> add     article = models.ForeignKey('indexes.Article', models.CASCADE)
            check = models.ForeignKey(ModelWithRelatedManagerCalledCheck, models.CASCADE)
            article = models.ForeignKey(
                ModelWithRelatedManagerCalledCheck,
                models.CASCADE,
                related_name='check',
            )
          class ModelWithRelatedManagerCalledCheck(models.Model):
              pass
  
          class ModelWithDescriptorCalledCheck(models.Model):
            check = models.ForeignKey(ModelWithRelatedManagerCalledCheck, models.CASCADE)
            article = models.ForeignKey(
                ModelWithRelatedManagerCalledCheck,
                models.CASCADE,
                related_name='check',
            )
            check = models.ForeignKey(ModelWithRelatedManagerCalledCheck, models.CASCADE)
            article = models.ForeignKey(
                ModelWithRelatedManagerCalledCheck,
                models.CASCADE,
                related_name='check',
            )
  
          errors = checks.run_checks()
          expected = [
              Error(
                  "The 'ModelWithAttributeCalledCheck.check()' class method is "
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/check_framework/tests.py