Skip to content

Commit

Permalink
📝 [#498] Improve API schema
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Nov 21, 2024
1 parent b7b791a commit 4d84ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/openarchiefbeheer/destruction/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class DestructionListItemReadSerializer(serializers.ModelSerializer):
review_advice_ignored = serializers.SerializerMethodField(
help_text=_(
"Specifies whether the record manager went against"
" the advice of a reviewer when processing a review."
" the advice of a reviewer when processing the last review."
),
allow_null=True,
)
Expand All @@ -258,7 +258,7 @@ class Meta:
"review_advice_ignored",
)

@extend_schema_field(build_basic_type((OpenApiTypes.BOOL, OpenApiTypes.NONE)))
@extend_schema_field(build_basic_type(OpenApiTypes.BOOL))
def get_review_advice_ignored(self, item: DestructionListItem) -> bool | None:
if hasattr(item, "review_advice_ignored"):
return item.review_advice_ignored
Expand Down

0 comments on commit 4d84ba5

Please sign in to comment.