Skip to content

Commit

Permalink
Clean Model class Config
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Nov 8, 2020
1 parent 94aceaf commit 8016e89
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions odmantic/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

from odmantic.bson import (
_BSON_SUBSTITUTED_FIELDS,
BSON_TYPES_ENCODERS,
BaseBSONModel,
ObjectId,
_decimalDecimal,
Expand Down Expand Up @@ -473,11 +472,6 @@ class _BaseODMModel(pydantic.BaseModel, metaclass=ABCMeta):

__slots__ = ("__fields_modified__",)

class Config:
validate_all = True
validate_assignment = True
json_encoders = BSON_TYPES_ENCODERS

@classmethod
def validate(cls: Type[TBase], value: Any) -> TBase:
if isinstance(value, cls):
Expand Down

0 comments on commit 8016e89

Please sign in to comment.