mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-04-28 02:31: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
|
@ -267,7 +267,7 @@ AUTH_USER_MODEL = "accounts.CustomUser"
|
|||
DATA_UPLOAD_MAX_NUMBER_FIELDS = 20480
|
||||
|
||||
GRAPH_MODELS = {
|
||||
"app_labels": ["accounts", "documents", "document_requests", "questionnaires"]
|
||||
"app_labels": ["accounts", "documents", "document_requests", "questionnaires", "authorization_requests"]
|
||||
}
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
|
|
|
@ -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