fix: add scope parameter to tool serializer in tool.py
This commit is contained in:
parent
317db5ae18
commit
a6b8cc4a31
@ -472,6 +472,7 @@ class ToolSerializer(serializers.Serializer):
|
|||||||
scope=ToolScope.WORKSPACE,
|
scope=ToolScope.WORKSPACE,
|
||||||
tool_type=ToolType.CUSTOM,
|
tool_type=ToolType.CUSTOM,
|
||||||
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
|
folder_id=instance.get('folder_id', self.data.get('workspace_id')),
|
||||||
|
template_id=instance.id,
|
||||||
is_active=False
|
is_active=False
|
||||||
)
|
)
|
||||||
tool.save()
|
tool.save()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user