mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-28 01:26:14 +00:00
Add in_process field to DocumentSerializer
[ci skip]
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user