Convert a MongoDB-compatible type to a Python type.
(self, value)
| 215 | raise ValidationError(message, errors=errors, field_name=field_name) |
| 216 | |
| 217 | def to_python(self, value): |
| 218 | """Convert a MongoDB-compatible type to a Python type.""" |
| 219 | return value |
| 220 | |
| 221 | def to_mongo(self, value): |
| 222 | """Convert a Python type to a MongoDB-compatible type.""" |