          self.assertEqual(errors, [])
  
      def test_valid_generic_relationship_with_explicit_fields(self):
          class TaggedItem(models.Model):
              custom_content_type = models.ForeignKey(ContentType)
              custom_object_id = models.PositiveIntegerField()
              content_object = GenericForeignKey(
                  'custom_content_type', 'custom_object_id')
  
          class Bookmark(models.Model):
 
</s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove             content_type = models.ForeignKey(ContentType)
 </s> add             content_type = models.ForeignKey(ContentType, models.CASCADE)
            custom_content_type = models.ForeignKey(ContentType, models.CASCADE)
          self.assertEqual(errors, [])
  
      def test_valid_generic_relationship_with_explicit_fields(self):
          class TaggedItem(models.Model):
            custom_content_type = models.ForeignKey(ContentType, models.CASCADE)
              custom_object_id = models.PositiveIntegerField()
              content_object = GenericForeignKey(
                  'custom_content_type', 'custom_object_id')
  
          class Bookmark(models.Model):
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/contenttypes_tests/tests.py