Browse Source

[Update] 去掉资产授权序列类中不存在的字段

pull/4019/head
Bai 5 years ago
parent
commit
f224e49de7
  1. 2
      apps/perms/serializers/asset_permission.py

2
apps/perms/serializers/asset_permission.py

@ -43,7 +43,7 @@ class AssetPermissionSerializer(BulkOrgResourceModelSerializer):
model = AssetPermission
mini_fields = ['id', 'name']
small_fields = mini_fields + [
'is_active', 'is_expired', 'is_valid', 'actions', 'created_by', 'date_created'
'is_active', 'actions', 'created_by', 'date_created'
]
m2m_fields = [
'users', 'user_groups', 'assets', 'nodes', 'system_users',

Loading…
Cancel
Save