Document open fix
* fixes a bug in opening a document
This commit is contained in:
1 parent
8e1f679c2a
commit
685f425e29
2 files changed
+2
-2
No files matched your search
@@ -135,7 +135,7 @@ class NewInterventionForm(BaseForm):
|
||||
intervention.save()
|
||||
for doc in documents:
|
||||
doc_obj = Document()
|
||||
doc_obj.document = doc
|
||||
doc_obj.file = doc
|
||||
# ToDo Add functionality for other attributes
|
||||
doc_obj.save()
|
||||
intervention.documents.add(doc_obj)
|
||||
|
||||
Reference in new issue
Block a user