fix: 修复用户授权资产账号API及Model处理逻辑

This commit is contained in:
Jiangjie.Bai
2022-09-28 18:40:33 +08:00
parent e3b138be3a
commit 351d3b297d
6 changed files with 98 additions and 73 deletions

View File

@@ -49,8 +49,9 @@ class AccountsGrantedSerializer(serializers.ModelSerializer):
# Todo: 添加前端登录逻辑中需要的一些字段,比如:是否需要手动输入密码
# need_manual = serializers.BooleanField(label=_('Need manual input'))
actions = ActionsField(read_only=True)
class Meta:
model = Account
fields = ['id', 'name', 'username']
fields = ['id', 'name', 'username', 'actions']
read_only_fields = fields