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 e6ad74d commit 277953aCopy full SHA for 277953a
sqlmodel/main.py
@@ -550,7 +550,7 @@ def __new__(
550
base_fields = {}
551
for base in bases[::-1]:
552
if issubclass(base, BaseModel):
553
- base_fields.update(base.model_fields)
+ base_fields.update(get_model_fields(base))
554
fields = get_model_fields(new_cls)
555
for k, v in fields.items():
556
if isinstance(v.default, InstrumentedAttribute):
0 commit comments