(self, value)
| 805 | return super().prepare_query_value(op, self.to_mongo(value)) |
| 806 | |
| 807 | def to_python(self, value): |
| 808 | if isinstance(value, dict): |
| 809 | doc_cls = get_document(value["_cls"]) |
| 810 | value = doc_cls._from_son(value) |
| 811 | |
| 812 | return value |
| 813 | |
| 814 | def validate(self, value, clean=True): |
| 815 | if self.choices and isinstance(value, SON): |
nothing calls this directly
no test coverage detected