From 4e3d86c3c6514a3fc5be132e6d8db2226e72bd86 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 18 Mar 2025 20:19:54 +0800 Subject: [PATCH] fix --- account/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/schemas.py b/account/schemas.py index e3fb5d5..12ba8d3 100644 --- a/account/schemas.py +++ b/account/schemas.py @@ -6,7 +6,7 @@ from .models import User, RoleChoices class UserListSchema(ModelSchema): - @staticmethod + @classmethod def get(cls, obj): raw_password = obj.raw_password if obj.role == RoleChoices.NORMAL else "" return cls(