Browse Source

[IMP] make if statement understandable

pull/1/head
houssine 7 years ago
parent
commit
3965408b6e
  1. 3
      easy_my_coop/models/coop.py

3
easy_my_coop/models/coop.py

@ -93,7 +93,8 @@ class subscription_request(models.Model):
except ValidationError: except ValidationError:
validated = False validated = False
if not sub_request.is_company and (sub_request.skip_control_ng or self.check_belgian_identification_id(sub_request.no_registre)):
if not sub_request.is_company:
if sub_request.skip_control_ng or self.check_belgian_identification_id(sub_request.no_registre):
validated = True validated = True
else: else:
validated = False validated = False

Loading…
Cancel
Save