[Bugfix] 修改普通用户获取资产详情的bug

This commit is contained in:
ibuler
2017-12-16 17:16:40 +08:00
parent 0f64d39cc5
commit 1b6fd4d13a
3 changed files with 5 additions and 10 deletions

View File

@@ -164,7 +164,8 @@ class AssetGrantedSerializer(serializers.ModelSerializer):
class Meta(object):
model = Asset
fields = ("id", "hostname", "ip", "port", "system_users_granted",
"is_inherited", "is_active", "system_users_join", "comment")
"is_inherited", "is_active", "system_users_join",
"platform", "comment",)
@staticmethod
def get_is_inherited(obj):