Skip to content

Commit

Permalink
fix: use regular Decimal during type substitution
Browse files Browse the repository at this point in the history
Taken from #374

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
  • Loading branch information
art049 and tiangolo committed Dec 11, 2023
1 parent c435be7 commit 343b5cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions odmantic/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
_BSON_SUBSTITUTED_FIELDS,
BaseBSONModel,
ObjectId,
_decimalDecimal,
_get_bson_serializer,
)
from odmantic.config import ODMConfigDict, validate_config
Expand Down Expand Up @@ -127,7 +126,7 @@ def find_duplicate_key(fields: Iterable[ODMBaseField]) -> Optional[str]:
pydantic.BaseModel,
bson.ObjectId,
bson.Decimal128,
_decimalDecimal,
decimal.Decimal,
)


Expand Down

0 comments on commit 343b5cb

Please sign in to comment.