From 98d2b8d19c5fa2d83245d655a4bf8ee251a2d9e4 Mon Sep 17 00:00:00 2001 From: maxnes3 Date: Sun, 13 Oct 2024 16:40:44 +0400 Subject: [PATCH] update: schema --- schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas.py b/schemas.py index a19e9b2..8f85870 100644 --- a/schemas.py +++ b/schemas.py @@ -16,4 +16,4 @@ class LaptopResponse(LaptopBase): price: float class Config: - orm_mode = True + from_attributes = True