def model_unpickle(model, attrs):
    from django.db.models.query_utils import deferred_class_factory
    cls = deferred_class_factory(model, attrs)
    return cls.__new__(cls)
Used to unpickle Model subclasses with deferred fields.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/base.py/model_unpickle