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