From b79ba96290e9a5e4a8a85e9932e77178184d3d51 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 5 Apr 2019 18:50:49 +0200 Subject: [PATCH] [IMP] adapt control of the subscription iban and niss number --- easy_my_coop/models/coop.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 401bfd5..581040b 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -114,9 +114,9 @@ class subscription_request(models.Model): except ValidationError: validated = False - if sub_request.skip_control_ng \ - or self.check_belgian_identification_id( - sub_request.no_registre): + if validated and (sub_request.skip_control_ng or + self.check_belgian_identification_id( + sub_request.no_registre)): validated = True else: validated = False