diff --git a/backend/src/openarchiefbeheer/destruction/api/serializers.py b/backend/src/openarchiefbeheer/destruction/api/serializers.py index 64f30259..26c2f0c4 100644 --- a/backend/src/openarchiefbeheer/destruction/api/serializers.py +++ b/backend/src/openarchiefbeheer/destruction/api/serializers.py @@ -97,7 +97,7 @@ def validate(self, attrs: dict) -> dict: return attrs -class CoReviewerAssignementSerializer(serializers.Serializer): +class CoReviewerAssignmentSerializer(serializers.Serializer): comment = serializers.CharField(required=True, allow_blank=False) add = CoReviewerSerializer(many=True) remove = CoReviewerSerializer(many=True, required=False) diff --git a/backend/src/openarchiefbeheer/destruction/api/viewsets.py b/backend/src/openarchiefbeheer/destruction/api/viewsets.py index ba66d2fe..a5363f33 100644 --- a/backend/src/openarchiefbeheer/destruction/api/viewsets.py +++ b/backend/src/openarchiefbeheer/destruction/api/viewsets.py @@ -58,7 +58,7 @@ ) from .serializers import ( AbortDestructionSerializer, - CoReviewerAssignementSerializer, + CoReviewerAssignmentSerializer, DestructionListAssigneeReadSerializer, DestructionListCoReviewSerializer, DestructionListItemReadSerializer, @@ -555,7 +555,7 @@ def get_permissions(self): description=_( "Full update of the co-reviewers assigned to a destruction list." ), - request=CoReviewerAssignementSerializer, + request=CoReviewerAssignmentSerializer, responses={200: DestructionListAssigneeReadSerializer}, ), partial_update=extend_schema( @@ -564,7 +564,7 @@ def get_permissions(self): description=_( "Partial update of the co-reviewers assigned to a destruction list." ), - request=CoReviewerAssignementSerializer, + request=CoReviewerAssignmentSerializer, responses={200: DestructionListAssigneeReadSerializer}, ), ) @@ -605,7 +605,7 @@ def get_serializer_class(self): case "list": return DestructionListAssigneeReadSerializer case "update" | "partial_update" | "create": - return CoReviewerAssignementSerializer + return CoReviewerAssignmentSerializer case default: # noqa return DestructionListAssigneeReadSerializer