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(