From ffff9f9d775da3cddb1aa88ba758675a6625d518 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 10 Jan 2025 12:54:41 +0800 Subject: [PATCH] Return additional document fields --- docmanager_backend/documents/serializers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docmanager_backend/documents/serializers.py b/docmanager_backend/documents/serializers.py index 9e62e56..289f898 100644 --- a/docmanager_backend/documents/serializers.py +++ b/docmanager_backend/documents/serializers.py @@ -84,6 +84,9 @@ class DocumentFileSerializer(serializers.ModelSerializer): "ocr_metadata", "date_uploaded", "sent_from", + "document_month", + "document_year", + "subject", "file", ] read_only_fields = [ @@ -94,5 +97,8 @@ class DocumentFileSerializer(serializers.ModelSerializer): "ocr_metadata", "date_uploaded", "sent_from", + "document_month", + "document_year", + "subject", "file", ]