fixed problem with IS_INT_IN_RANGE for large numbers

This commit is contained in:
mdipierro
2013-10-11 16:59:05 -05:00
parent 59290534bc
commit d8e8d1d597
3 changed files with 7 additions and 18 deletions
+1 -1
View File
@@ -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':