  
  from .models import (
      Address, Place, Restaurant, Link, CharLink, TextLink,
      Person, Contact, Note, Organization, OddRelation1, OddRelation2, Company,
      Developer, Team, Guild, Tag, Board, HasLinkThing, A, B, C, D)
  
  
  class GenericRelationTests(TestCase):
  
      def test_inherited_models_content_type(self):
 
</s> remove         # GFK deletes
        for relation in opts.many_to_many:
            if not relation.rel.through:
 </s> add         for field in model._meta.virtual_fields:
            if hasattr(field, 'bulk_related_objects'):
                # It's something like generic foreign key.
    Developer, Team, Guild, Tag, Board, HasLinkThing, A, B, C, D,
    Related, Content, Node,
)
  
  from .models import (
      Address, Place, Restaurant, Link, CharLink, TextLink,
      Person, Contact, Note, Organization, OddRelation1, OddRelation2, Company,
    Developer, Team, Guild, Tag, Board, HasLinkThing, A, B, C, D,
    Related, Content, Node,
)
  
  
  class GenericRelationTests(TestCase):
  
      def test_inherited_models_content_type(self):
keep keep keep keep replace keep keep keep keep keep
 Fixed #22998 -- Updated the fast_delete logic for GFKs 
tests/generic_relations_regress/tests.py