mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-08 10:49:08 +00:00
Add new model to operate log (#3546)
* [Update] 添加一下model到operate log, [platform,remoteapppermission,changeauthplan,gatherusertask] * [Bugfix] 修改了返回platform的几个位置,修改了command execution的url * [Update] 优化ops task表结构,避免列表页查询几十次sql, 优化了基础的encryptjsonfield * [Update] 修改adhoc 返回的become字段,避免密码泄露 * [Update] 修改变量名称
This commit is contained in:
@@ -46,6 +46,7 @@ class AssetGrantedSerializer(serializers.ModelSerializer):
|
||||
被授权资产的数据结构
|
||||
"""
|
||||
protocols = ProtocolsField(label=_('Protocols'), required=False, read_only=True)
|
||||
platform = serializers.ReadOnlyField(source='platform_base')
|
||||
|
||||
class Meta:
|
||||
model = Asset
|
||||
|
Reference in New Issue
Block a user