def add_external_class(klass, name=None):

    if name is None:
        name = klass.__name__

    module = sys.modules[__name__]
    setattr(module, name, klass)
Testing doing select_related on the related name manager of a unique FK. See #13934.
dataset/ETHPy150Open CybOXProject/python-cybox/cybox/bindings/cybox_core.py/add_external_class--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/tests/relatedapp/tests.py/RelatedGeoModelTest.test15_invalid_select_related