perf(perms): 用户/用户组授权的所有应用API返回attrs属性

This commit is contained in:
Bai
2020-11-05 11:23:32 +08:00
committed by Jiangjie.Bai
parent 0390e37fd5
commit 6df331cbed
5 changed files with 57 additions and 45 deletions

View File

@@ -36,7 +36,7 @@ class ApplicationGrantedSerializer(serializers.ModelSerializer):
class Meta:
model = Application
only_fields = [
'id', 'name', 'domain', 'category', 'type', 'comment', 'org_id'
'id', 'name', 'domain', 'category', 'type', 'attrs', 'comment', 'org_id'
]
fields = only_fields + ['category_display', 'type_display', 'org_name']
read_only_fields = fields