Intervention check

* adds functionality for check button
* adds highlighting of important data on detail view for intervention
* adds deleting logic to BaseObject model and BaseResource model
* adds RunCheckForm
* adds check_validity() method to Intervention class
* fixes wrong success msg for adding documents
* adds/updates translations
This commit is contained in:
mipel
2021-08-04 15:19:06 +02:00
parent 6d75fdb7a7
commit c8ede788e0
12 changed files with 239 additions and 108 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ class NewDocumentForm(BaseModalForm):
created=action,
title=self.cleaned_data["title"],
comment=self.cleaned_data["comment"],
document=self.cleaned_data["file"],
file=self.cleaned_data["file"],
date_of_creation=self.cleaned_data["creation_date"],
)
self.instance.documents.add(doc)