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 7dfc593 commit 390efd8Copy full SHA for 390efd8
sqlmodel/main.py
@@ -998,7 +998,9 @@ def sqlmodel_update(
998
if key in get_model_fields(self):
999
setattr(self, key, value)
1000
else:
1001
- raise AttributeError(f"'{type(self).__name__}' has no field '{key}'")
+ raise AttributeError(
1002
+ f"'{type(self).__name__}' has no field '{key}'"
1003
+ )
1004
elif isinstance(obj, BaseModel):
1005
for key in get_model_fields(obj):
1006
if key in use_update:
0 commit comments