A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
remove _object from document results, which makes the API about 33% faster.
jonaswinkler0a18c819d4f7
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.pyindex e6f278f93..973ed2ae5 100644--- a/src/documents/serialisers.py+++ b/src/documents/serialisers.py@@ -83,25 +83,16 @@ class DocumentSerializer(serializers.ModelSerializer):tags = TagsField(many=True)document_type = DocumentTypeField(allow_null=True)- correspondent_object = TagSerializer(- read_only=True, source="correspondent")- document_type_object = TagSerializer(- read_only=True, source="document_type")- tags_objects = TagSerializer(many=True, read_only=True, source="tags")-class Meta:model = Documentdepth = 1fields = ("id","correspondent",- "correspondent_object","document_type",- "document_type_object","title","content","tags",- "tags_objects","created","modified","added",