mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-18 17:13:00 +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",
|
||||
"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",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue