  
  # Ticket #22998
  
  class Node(models.Model):
      content_type = models.ForeignKey(ContentType)
      object_id = models.PositiveIntegerField()
      content = GenericForeignKey('content_type', 'object_id')
  
  
  class Content(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, related_name='backend_tags')
 </s> add     content_type = models.ForeignKey(ContentType, models.CASCADE, related_name='backend_tags') </s> remove     content_type = models.ForeignKey(ContentType, related_name='tagged_items')
 </s> add     content_type = models.ForeignKey(ContentType, models.CASCADE, related_name='tagged_items')
    content_type = models.ForeignKey(ContentType, models.CASCADE)
  
  # Ticket #22998
  
  class Node(models.Model):
    content_type = models.ForeignKey(ContentType, models.CASCADE)
      object_id = models.PositiveIntegerField()
      content = GenericForeignKey('content_type', 'object_id')
  
  
  class Content(models.Model):
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/generic_relations_regress/models.py