Convert a Python type to a MongoDB-compatible type.
(self, value)
| 219 | return value |
| 220 | |
| 221 | def to_mongo(self, value): |
| 222 | """Convert a Python type to a MongoDB-compatible type.""" |
| 223 | return self.to_python(value) |
| 224 | |
| 225 | def _to_mongo_safe_call(self, value, use_db_field=True, fields=None): |
| 226 | """Helper method to call to_mongo with proper inputs.""" |
no test coverage detected