* fixes created timestamp in detail views where modified needs to be displayed
* adds fallback timestamp if data has not been edited, yet --> show created timestamp
* fixes bug where deleting of certain data didn't redirect to the index view
* adds quality_check() method for EMA, needed for recording
* adds all functions which are provided for compensations to EMA
* adds/updates translations
This commit is contained in:
mipel
2021-08-19 13:44:06 +02:00
parent d1f43f8c64
commit 615b7bf5ea
18 changed files with 717 additions and 18 deletions

View File

@@ -22,6 +22,7 @@ from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from compensation.models import EcoAccount
from ema.models import Ema
from intervention.models import Intervention
from konova.contexts import BaseContext
from konova.models import Document, BaseObject
@@ -370,7 +371,8 @@ class RecordForm(BaseModalForm):
implemented_cls_logic = {
Intervention,
EcoAccount
EcoAccount,
Ema,
}
instance_name = self.instance.__class__
if instance_name not in implemented_cls_logic: