From 10a8a5da19af0e9d1af84056c3ebb71feaceaa9f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 26 Aug 2025 01:01:17 -0700 Subject: [PATCH] Add in_process field to DocumentSerializer [ci skip] --- src/documents/serialisers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index 33a703f96..5181a19c7 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -935,6 +935,8 @@ class DocumentSerializer( required=False, ) + in_process = serializers.BooleanField(read_only=True) + def get_page_count(self, obj) -> int | None: return obj.page_count @@ -1103,6 +1105,7 @@ class DocumentSerializer( "remove_inbox_tags", "page_count", "mime_type", + "in_process", ) list_serializer_class = OwnedObjectListSerializer