[SILO-820] fix: update serializer for module detail API endpoint to use ModuleUpdateSerializer (#8496)
This commit is contained in:
parent
e92b835869
commit
c8a800104c
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ class ModuleDetailAPIEndpoint(BaseAPIView):
|
|||
{"error": "Archived module cannot be edited"},
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
serializer = ModuleSerializer(module, data=request.data, context={"project_id": project_id}, partial=True)
|
||||
serializer = ModuleUpdateSerializer(module, data=request.data, context={"project_id": project_id}, partial=True)
|
||||
if serializer.is_valid():
|
||||
if (
|
||||
request.data.get("external_id")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue