From 91eab197531a9ea7561901287f8511b5aff07cc7 Mon Sep 17 00:00:00 2001 From: SilviaAmAm Date: Thu, 21 Nov 2024 16:28:29 +0100 Subject: [PATCH] :memo: [#498] Improve API schema --- backend/src/openarchiefbeheer/destruction/api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/openarchiefbeheer/destruction/api/serializers.py b/backend/src/openarchiefbeheer/destruction/api/serializers.py index e7075c12..f516c210 100644 --- a/backend/src/openarchiefbeheer/destruction/api/serializers.py +++ b/backend/src/openarchiefbeheer/destruction/api/serializers.py @@ -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, ) @@ -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