def unpickle_query_class(QueryClass):
    # XXX: Would be nice to not have any dependency on cx_Oracle here. Since
    # modules can't be pickled, we need a way to know to load the right module.
    import cx_Oracle

    klass = query_class(QueryClass, cx_Oracle)
    return klass.__new__(klass)
Check that dumpdata honors allow_migrate restrictions on the router
dataset/ETHPy150Open dcramer/django-compositepks/django/db/backends/oracle/query.py/unpickle_query_class--crossover with--dataset/ETHPy150Open django/django/tests/multiple_database/tests.py/AuthTestCase.test_dumpdata