def deserialize(self, source):
        serializer = self.get_serializer()

        if isinstance(source, EsQueryset):
            # Note: generator ?
            return [serializer.deserialize(e) for e in source]
        else:
            return serializer.deserialize(source)
Create an instance of the Model from the elasticsearch source
dataset/ETHPy150Open liberation/django-elasticsearch/django_elasticsearch/managers.py/ElasticsearchManager.deserialize