Skip to content

Commit

Permalink
📝 [#498] Improve API schema
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm authored and Xaohs committed Nov 22, 2024
1 parent 6abd1e0 commit 91eab19
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 91eab19

Please sign in to comment.