Add in_process field to DocumentSerializer

[ci skip]
This commit is contained in:
shamoon
2025-08-26 01:01:17 -07:00
parent d190b50032
commit 10a8a5da19

View File

@@ -935,6 +935,8 @@ class DocumentSerializer(
required=False, required=False,
) )
in_process = serializers.BooleanField(read_only=True)
def get_page_count(self, obj) -> int | None: def get_page_count(self, obj) -> int | None:
return obj.page_count return obj.page_count
@@ -1103,6 +1105,7 @@ class DocumentSerializer(
"remove_inbox_tags", "remove_inbox_tags",
"page_count", "page_count",
"mime_type", "mime_type",
"in_process",
) )
list_serializer_class = OwnedObjectListSerializer list_serializer_class = OwnedObjectListSerializer