We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8dadd5 commit 16bef83Copy full SHA for 16bef83
1 file changed
sqlmodel/main.py
@@ -873,14 +873,15 @@ def model_dump(
873
fallback: Union[Callable[[Any], Any], None] = None,
874
serialize_as_any: bool = False,
875
) -> Dict[str, Any]:
876
+ if PYDANTIC_MINOR_VERSION < (2, 11):
877
+ by_alias = by_alias or False
878
if PYDANTIC_MINOR_VERSION >= (2, 7):
879
extra_kwargs: Dict[str, Any] = {
880
"context": context,
881
"serialize_as_any": serialize_as_any,
882
}
883
if PYDANTIC_MINOR_VERSION >= (2, 11):
884
extra_kwargs["fallback"] = fallback
-
885
else:
886
extra_kwargs = {}
887
if IS_PYDANTIC_V2:
0 commit comments