x
This commit is contained in:
parent
6b8608b53b
commit
7c76becd85
|
@ -232,7 +232,7 @@ class CloneSchemaSerializer(StrictSerializer):
|
|||
})
|
||||
if source_operation.result is None:
|
||||
raise serializers.ValidationError({
|
||||
'source_operation': msg.operationResultEmpty()
|
||||
'source_operation': msg.operationResultEmpty(source_operation.alias)
|
||||
})
|
||||
return attrs
|
||||
|
||||
|
|
|
@ -357,7 +357,7 @@ class OssViewSet(viewsets.GenericViewSet, generics.ListAPIView, generics.Retriev
|
|||
source = cast(m.Operation, serializer.validated_data['source_operation'])
|
||||
alias = '+' + source.alias
|
||||
title = '+' + source.title
|
||||
source_schema = RSForm(source.result)
|
||||
source_schema = RSForm(cast(LibraryItem, source.result))
|
||||
|
||||
new_schema = deepcopy(source_schema.model)
|
||||
new_schema.pk = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user