#36 Quality checks

* refactors toggling of recorded status into RecordableMixin
This commit is contained in:
2021-10-25 17:01:02 +02:00
parent 0e4113249f
commit f6f532effb
5 changed files with 38 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ from compensation.managers import CompensationStateManager, EcoAccountDeductionM
from compensation.utils.quality import CompensationQualityChecker, EcoAccountQualityChecker
from intervention.models import Intervention, ResponsibilityData, LegalData
from konova.models import BaseObject, BaseResource, Geometry, UuidModel, AbstractDocument, \
generate_document_file_upload_path
generate_document_file_upload_path, RecordableMixin
from konova.settings import DEFAULT_SRID_RLP, LANIS_LINK_TEMPLATE
from user.models import UserActionLogEntry
@@ -310,7 +310,7 @@ class CompensationDocument(AbstractDocument):
pass
class EcoAccount(AbstractCompensation):
class EcoAccount(AbstractCompensation, RecordableMixin):
"""
An eco account is a kind of 'prepaid' compensation. It can be compared to an account that already has been filled
with some kind of currency. From this account one is able to deduct currency for current projects.