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 555091a commit 9ab90a7Copy full SHA for 9ab90a7
apps/tools/serializers/tool.py
@@ -282,7 +282,7 @@ class Operate(serializers.Serializer):
282
def edit(self, instance, with_valid=True):
283
if with_valid:
284
self.is_valid(raise_exception=True)
285
- ToolCreateRequest(data=instance).is_valid(raise_exception=True)
+ ToolEditRequest(data=instance).is_valid(raise_exception=True)
286
if not QuerySet(Tool).filter(id=self.data.get('id')).exists():
287
raise serializers.ValidationError(_('Tool not found'))
288
0 commit comments