A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Chore: typing fixes
shamoon426c0a8974b5
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.pyindex e9fdf1202..e16ad76de 100644--- a/src/documents/serialisers.py+++ b/src/documents/serialisers.py@@ -2927,7 +2927,7 @@ class WorkflowSerializer(serializers.ModelSerializer):return instance- def to_representation(self, instance):+ def to_representation(self, instance: Workflow) -> dict[str, Any]:data = super().to_representation(instance)actions = instance.actions.order_by("order", "pk")data["actions"] = WorkflowActionSerializer(diff --git a/src/documents/views.py b/src/documents/views.pyindex 637e2ccaf..b2fd118e5 100644--- a/src/documents/views.py+++ b/src/documents/views.py@@ -3022,7 +3022,7 @@ class SharedLinkView(View):return response-def serve_file(*, doc: Document, use_archive: bool, disposition: str):+def serve_file(*, doc: Document, use_archive: bool, disposition: str) -> HttpResponse:if use_archive:file_handle = doc.archive_filefilename = doc.get_public_filename(archive=True)