From 0c653b5ee3b70c848c72bd2d1390920379b02117 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 27 Jun 2018 10:26:37 -0500 Subject: [PATCH] Fix input validation for integer grid filter sometimes a default is provided as int --- tailbone/grids/filters.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/grids/filters.py b/tailbone/grids/filters.py index 3b621159..84ab6e61 100644 --- a/tailbone/grids/filters.py +++ b/tailbone/grids/filters.py @@ -468,6 +468,8 @@ class AlchemyIntegerFilter(AlchemyNumericFilter): def value_invalid(self, value): if value: + if isinstance(value, int): + return True if not value.isdigit(): return True return False