We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0bfe0c commit 840fa68Copy full SHA for 840fa68
apps/tools/views/tool.py
@@ -238,9 +238,9 @@ class EditIcon(APIView):
238
tags=[_('Tool')] # type: ignore
239
)
240
@has_permissions(PermissionConstants.TOOL_EDIT.get_workspace_permission())
241
- def put(self, request: Request, id: str, workspace_id: str):
+ def put(self, request: Request, tool_id: str, workspace_id: str):
242
return result.success(ToolSerializer.IconOperate(data={
243
- 'id': id,
+ 'id': tool_id,
244
'workspace_id': workspace_id,
245
'user_id': request.user.id,
246
'image': request.FILES.get('file')
0 commit comments