This commit is contained in:
2025-03-18 20:19:54 +08:00
parent d857da26f6
commit 4e3d86c3c6

View File

@@ -6,7 +6,7 @@ from .models import User, RoleChoices
class UserListSchema(ModelSchema): class UserListSchema(ModelSchema):
@staticmethod @classmethod
def get(cls, obj): def get(cls, obj):
raw_password = obj.raw_password if obj.role == RoleChoices.NORMAL else "" raw_password = obj.raw_password if obj.role == RoleChoices.NORMAL else ""
return cls( return cls(