Merge pull request #4039 from jumpserver/asset_permission-add-field

[Update] perms.serializers.asset_permission.AssetPermissionSerializer…
pull/4047/head
老广 5 years ago committed by GitHub
commit 78ac1968dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save