🔧 chore(base.py): comment out unused json_loads and json_dumps arguments in model_config to improve code readability and remove warnings

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-25 15:56:03 -03:00
commit afee7508e0

View file

@ -23,5 +23,7 @@ class SQLModelSerializable(SQLModel):
# TODO[pydantic]: The following keys were removed: `json_loads`, `json_dumps`.
# Check https://docs.pydantic.dev/dev-v2/migration/#changes-to-config for more information.
model_config = ConfigDict(
from_attributes=True, json_loads=orjson.loads, json_dumps=orjson_dumps
from_attributes=True,
# json_loads=orjson.loads,
# json_dumps=orjson_dumps
)