From f1384b72f208b1623becb79f8ded7390cd524e74 Mon Sep 17 00:00:00 2001 From: jomo Date: Thu, 1 Feb 2024 00:01:55 +0100 Subject: [PATCH] orm_mode has been renamed to from_attributes --- schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas.py b/schemas.py index bf6f444..30f7545 100644 --- a/schemas.py +++ b/schemas.py @@ -14,4 +14,4 @@ class Item(BaseModel): last_updated: int | None = Field(None) class Config: - orm_mode = True + from_attributes = True