      street = models.CharField(max_length=80)
      city = models.CharField(max_length=50)
      state = models.CharField(max_length=2)
      zipcode = models.CharField(max_length=5)
      content_type = models.ForeignKey(ContentType)
      object_id = models.PositiveIntegerField()
      content_object = GenericForeignKey()
  
      def __str__(self):
          return '%s %s, %s %s' % (self.street, self.city, self.state, self.zipcode)
 
</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)
    content_type = models.ForeignKey(ContentType, models.CASCADE)
      street = models.CharField(max_length=80)
      city = models.CharField(max_length=50)
      state = models.CharField(max_length=2)
      zipcode = models.CharField(max_length=5)
    content_type = models.ForeignKey(ContentType, models.CASCADE)
      object_id = models.PositiveIntegerField()
      content_object = GenericForeignKey()
  
      def __str__(self):
          return '%s %s, %s %s' % (self.street, self.city, self.state, self.zipcode)
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