Skip to content

Commit

Permalink
🐛 [#493] Add default serialiser class
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm authored and svenvandescheur committed Nov 19, 2024
1 parent 4e0a87d commit f9901ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/openarchiefbeheer/destruction/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ def get_serializer_class(self):
return DestructionListAssigneeReadSerializer
case "update" | "partial_update" | "create":
return CoReviewerAssignementSerializer
case default: # noqa
return DestructionListAssigneeReadSerializer

def get_permissions(self):
if self.action in ["update", "partial_upate"]:
Expand Down

0 comments on commit f9901ce

Please sign in to comment.