  from django.test import TestCase, skipIfDBFeature
  from django.forms.models import modelform_factory
  
  from .models import (
      Address, Place, Restaurant, Link, CharLink, TextLink,
      Person, Contact, Note, Organization, OddRelation1, OddRelation2, Company,
 
</s> remove     Developer, Team, Guild, Tag, Board, HasLinkThing, A, B, C, D)
 </s> add     Developer, Team, Guild, Tag, Board, HasLinkThing, A, B, C, D,
    Related, Content, Node,
) </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.
from django.db.models.deletion import ProtectedError
  from django.test import TestCase, skipIfDBFeature
  from django.forms.models import modelform_factory
from django.db.models.deletion import ProtectedError
  
  from .models import (
      Address, Place, Restaurant, Link, CharLink, TextLink,
      Person, Contact, Note, Organization, OddRelation1, OddRelation2, Company,
keep add keep keep keep keep
 Fixed #22998 -- Updated the fast_delete logic for GFKs 
tests/generic_relations_regress/tests.py