EMA
* 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user