Skip to content

Commit e231436

Browse files
committed
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
1 parent b3073c8 commit e231436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/tools/serializers/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def add(self, instance: Dict, with_valid=True):
789789
tool_id = uuid.uuid7()
790790
tool = Tool(
791791
id=tool_id,
792-
name=tool_data.get('name'),
792+
name=instance.get('name'),
793793
desc=tool_data.get('desc'),
794794
code=tool_data.get('code'),
795795
user_id=self.data.get('user_id'),

0 commit comments

Comments
 (0)