Fix input validation for integer grid filter

sometimes a default is provided as int
This commit is contained in:
Lance Edgar 2018-06-27 10:26:37 -05:00
parent f92123c398
commit 0c653b5ee3

View file

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