diff --git a/odmantic/model.py b/odmantic/model.py index b3b966fd..c8dc3f78 100644 --- a/odmantic/model.py +++ b/odmantic/model.py @@ -35,12 +35,7 @@ from pydantic.main import BaseModel from pydantic_core import InitErrorDetails -from odmantic.bson import ( - _BSON_SUBSTITUTED_FIELDS, - BaseBSONModel, - ObjectId, - _decimalDecimal, -) +from odmantic.bson import _BSON_SUBSTITUTED_FIELDS, BaseBSONModel, ObjectId from odmantic.config import ODMConfigDict, validate_config from odmantic.exceptions import ( DocumentParsingError, @@ -131,7 +126,7 @@ def find_duplicate_key(fields: Iterable[ODMBaseField]) -> Optional[str]: pydantic.BaseModel, bson.ObjectId, bson.Decimal128, - _decimalDecimal, + decimal.Decimal, )