Documents

* add get document route
* add missing attributes to intervention detail view
This commit is contained in:
mipel
2021-07-23 15:35:05 +02:00
parent 13a15e4f56
commit a0c0a0f074
4 changed files with 133 additions and 4 deletions
+1
View File
@@ -60,6 +60,7 @@ class Document(BaseResource):
"""
Documents can be attached to compensation or intervention for uploading legal documents or pictures.
"""
title = models.CharField(max_length=500, null=True, blank=True)
date_of_creation = models.DateField()
document = models.FileField()
comment = models.TextField()