From f2478c93124479a1c4d3683611cc20699d91cb60 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 3 May 2019 15:25:58 +0200 Subject: [PATCH] [IMP] make validation on iban only if iban is not empty --- easy_my_coop_ch/models/coop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easy_my_coop_ch/models/coop.py b/easy_my_coop_ch/models/coop.py index c3ddacf..1bdf5d4 100644 --- a/easy_my_coop_ch/models/coop.py +++ b/easy_my_coop_ch/models/coop.py @@ -28,4 +28,6 @@ class subscription_request(models.Model): return True def check_iban(self, iban): + if iban: + return super(subscription_request, self).check_iban(iban) return True