orm_mode has been renamed to from_attributes
This commit is contained in:
parent
f3658a76ff
commit
f1384b72f2
1 changed files with 1 additions and 1 deletions
|
@ -14,4 +14,4 @@ class Item(BaseModel):
|
|||
last_updated: int | None = Field(None)
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
|
Loading…
Reference in a new issue