mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-19 01:23:02 +08:00
Return additional document fields
This commit is contained in:
parent
dba3f6df62
commit
ffff9f9d77
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue