user info bug

This commit is contained in:
曹前明 2022-09-24 07:53:08 +08:00
parent 3c633b6370
commit b874a9225f
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ class UserViewSet(CustomModelViewSet):
'avatar': user.avatar,
'perms': perms,
'belong_dept': user.belong_dept.id,
'post': user.post,
'post': user.post.id,
'belong_dept_name': user.belong_dept.name if user.belong_dept else '',
'post_name': user.post.name if user.post else '',
'is_superuser': user.is_superuser,