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

Method to_mongo

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

Source from the content-addressed store, hash-verified

697 return original_value
698
699 def to_mongo(self, value):
700 value = self.to_python(value)
701 return self._convert_from_datetime(value)
702
703 def prepare_query_value(self, op, value):
704 if value is None:

Callers

nothing calls this directly

Calls 2

to_pythonMethod · 0.95

Tested by

no test coverage detected