

def deserialize_instance(serialized_instance):
    ' Deserialize Django model instance '
    (model_name, pk) = serialized_instance.split(':')
    model = apps.get_model(model_name)
    return model._default_manager.get(pk=pk)

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/core/utils.py deserialize_instance/original