remove validation of imei

This commit is contained in:
Cayo Puigdefabregas 2023-06-07 12:28:00 +02:00
parent f423d5ea34
commit 2c171d8e26
1 changed files with 4 additions and 4 deletions

View File

@ -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