From 7f8d4f55f123c0629e837217f170960c77a0fa2d Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 15 Jul 2024 19:36:57 +0800 Subject: [PATCH] update --- app/schemas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/schemas.py b/app/schemas.py index 9a3a9d3..fcd2c16 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -20,4 +20,5 @@ class User(UserBase): id: int class Config: - orm_mode = True + # orm_mode = True + from_attributes = True