Return additional document fields

This commit is contained in:
Keannu Bernasol 2025-01-10 12:54:41 +08:00
parent dba3f6df62
commit ffff9f9d77

View file

@ -84,6 +84,9 @@ class DocumentFileSerializer(serializers.ModelSerializer):
"ocr_metadata", "ocr_metadata",
"date_uploaded", "date_uploaded",
"sent_from", "sent_from",
"document_month",
"document_year",
"subject",
"file", "file",
] ]
read_only_fields = [ read_only_fields = [
@ -94,5 +97,8 @@ class DocumentFileSerializer(serializers.ModelSerializer):
"ocr_metadata", "ocr_metadata",
"date_uploaded", "date_uploaded",
"sent_from", "sent_from",
"document_month",
"document_year",
"subject",
"file", "file",
] ]