MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / to_python

Method to_python

mongoengine/fields.py:746–751  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

744 return self.document_type_obj
745
746 def to_python(self, value):
747 if not isinstance(value, self.document_type):
748 return self.document_type._from_son(
749 value, _auto_dereference=self._auto_dereference
750 )
751 return value
752
753 def to_mongo(self, value, use_db_field=True, fields=None):
754 if not isinstance(value, self.document_type):

Callers

nothing calls this directly

Calls 1

_from_sonMethod · 0.80

Tested by

no test coverage detected