#38 User requests

* implements 2) "Multiple revocations for interventions"
This commit is contained in:
2021-11-15 12:18:22 +01:00
parent a0df7f4fe1
commit faffd454b9
8 changed files with 227 additions and 226 deletions

View File

@@ -66,8 +66,8 @@ class InterventionQualityChecker(AbstractQualityChecker):
try:
legal = self.obj.legal
# Check for a revocation
if legal.revocation:
self.messages.append(_("Revocation exists"))
if legal.revocations.exists():
self.messages.append(_("Revocations exists"))
if legal.registration_date is None:
self._add_missing_attr_name(_("Registration date"))