Skip to content

Commit 277953a

Browse files
author
John Lyu
committed
fix pydantic v1 support
1 parent e6ad74d commit 277953a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def __new__(
550550
base_fields = {}
551551
for base in bases[::-1]:
552552
if issubclass(base, BaseModel):
553-
base_fields.update(base.model_fields)
553+
base_fields.update(get_model_fields(base))
554554
fields = get_model_fields(new_cls)
555555
for k, v in fields.items():
556556
if isinstance(v.default, InstrumentedAttribute):

0 commit comments

Comments
 (0)