fixed problem with IS_INT_IN_RANGE for large numbers
This commit is contained in:
+1
-1
@@ -6926,7 +6926,7 @@ def sqlhtml_validators(field):
|
||||
elif field_type == 'double' or field_type == 'float':
|
||||
requires.append(validators.IS_FLOAT_IN_RANGE(-1e100, 1e100))
|
||||
elif field_type in ('integer','bigint'):
|
||||
requires.append(validators.IS_INT_IN_RANGE(-1e100, 1e100))
|
||||
requires.append(validators.IS_INT_IN_RANGE(-2**31, 2**31-1))
|
||||
elif field_type.startswith('decimal'):
|
||||
requires.append(validators.IS_DECIMAL_IN_RANGE(-10**10, 10**10))
|
||||
elif field_type == 'date':
|
||||
|
||||
Reference in New Issue
Block a user