mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: update tool name assignment to use instance data in tool and shared_tool modules
--bug=1061891 --user=刘瑞斌 【工具】从工具商店创建的工具,修改名称后添加还是显示的默认名称 https://www.tapd.cn/62980211/s/1774595
This commit is contained in:
parent
b3073c8aad
commit
e2314360e9
|
|
@ -789,7 +789,7 @@ class ToolSerializer(serializers.Serializer):
|
|||
tool_id = uuid.uuid7()
|
||||
tool = Tool(
|
||||
id=tool_id,
|
||||
name=tool_data.get('name'),
|
||||
name=instance.get('name'),
|
||||
desc=tool_data.get('desc'),
|
||||
code=tool_data.get('code'),
|
||||
user_id=self.data.get('user_id'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue