From 2c171d8e26e9ccd094c5a90f84a7621d5fef6a9e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 7 Jun 2023 12:28:00 +0200 Subject: [PATCH] remove validation of imei --- ereuse_devicehub/inventory/forms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index e05e4a04..6c2b428c 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -520,10 +520,10 @@ class NewDeviceForm(FlaskForm): self.depth.errors = txt is_valid = False - if self.imei.data and self.amount.data == 1: - if not 13 < len(str(self.imei.data)) < 17: - self.imei.errors = error - is_valid = False + # if self.imei.data and self.amount.data == 1: + # if not 13 < len(str(self.imei.data)) < 17: + # self.imei.errors = error + # is_valid = False if self.meid.data and self.amount.data == 1: meid = self.meid.data