Skip to content

Commit

Permalink
✏️ #561 - refactor: fix typo in CoReviewerAssignmentSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Dec 20, 2024
1 parent 8dc3a0d commit 5893dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions backend/src/openarchiefbeheer/destruction/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
)
from .serializers import (
AbortDestructionSerializer,
CoReviewerAssignementSerializer,
CoReviewerAssignmentSerializer,
DestructionListAssigneeReadSerializer,
DestructionListCoReviewSerializer,
DestructionListItemReadSerializer,
Expand Down Expand Up @@ -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(
Expand All @@ -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},
),
)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5893dee

Please sign in to comment.