mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-04-28 10:41:23 +08:00
Add in new document fields for upload and update operations
This commit is contained in:
parent
6357899b70
commit
d227535383
3 changed files with 12 additions and 4 deletions
|
@ -10,6 +10,10 @@ class DocumentUpdateSerializer(serializers.ModelSerializer):
|
|||
"name",
|
||||
"document_type",
|
||||
"number_pages",
|
||||
"sent_from",
|
||||
"document_month",
|
||||
"document_year",
|
||||
"subject"
|
||||
]
|
||||
|
||||
|
||||
|
@ -28,9 +32,13 @@ class DocumentUploadSerializer(serializers.ModelSerializer):
|
|||
"file",
|
||||
"document_type",
|
||||
"number_pages",
|
||||
"sent_from",
|
||||
"document_month",
|
||||
"document_year",
|
||||
"subject",
|
||||
"date_uploaded",
|
||||
]
|
||||
read_only_fields = ["id", "date-uploaded"]
|
||||
read_only_fields = ["id", "date_uploaded"]
|
||||
|
||||
|
||||
class DocumentDeleteSerializer(serializers.ModelSerializer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue