diff --git a/tailbone/grids/filters.py b/tailbone/grids/filters.py index 84ab6e61..93c0e669 100644 --- a/tailbone/grids/filters.py +++ b/tailbone/grids/filters.py @@ -472,6 +472,10 @@ class AlchemyIntegerFilter(AlchemyNumericFilter): return True if not value.isdigit(): return True + # TODO: this one is to avoid DataError from PG, but perhaps that + # isn't a good enough reason to make this global logic? + if int(value) > 2147483647: + return True return False