Fix input validation for integer grid filter
sometimes a default is provided as int
This commit is contained in:
parent
f92123c398
commit
0c653b5ee3
|
@ -468,6 +468,8 @@ class AlchemyIntegerFilter(AlchemyNumericFilter):
|
||||||
|
|
||||||
def value_invalid(self, value):
|
def value_invalid(self, value):
|
||||||
if value:
|
if value:
|
||||||
|
if isinstance(value, int):
|
||||||
|
return True
|
||||||
if not value.isdigit():
|
if not value.isdigit():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue