Skip to content

Commit c8a8001

Browse files
authored
[SILO-820] fix: update serializer for module detail API endpoint to use ModuleUpdateSerializer (#8496)
1 parent e92b835 commit c8a8001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/api/plane/api/views/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def patch(self, request, slug, project_id, pk):
414414
{"error": "Archived module cannot be edited"},
415415
status=status.HTTP_400_BAD_REQUEST,
416416
)
417-
serializer = ModuleSerializer(module, data=request.data, context={"project_id": project_id}, partial=True)
417+
serializer = ModuleUpdateSerializer(module, data=request.data, context={"project_id": project_id}, partial=True)
418418
if serializer.is_valid():
419419
if (
420420
request.data.get("external_id")

0 commit comments

Comments
 (0)