From d4defef13896fcd858897f5d2180be6f51a3f38e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 3 Jan 2017 10:02:14 -0600 Subject: [PATCH] Fix type error in grid numeric filter --- tailbone/newgrids/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/newgrids/filters.py b/tailbone/newgrids/filters.py index fa8616b7..cba5f313 100644 --- a/tailbone/newgrids/filters.py +++ b/tailbone/newgrids/filters.py @@ -377,7 +377,7 @@ class AlchemyNumericFilter(AlchemyGridFilter): # term for integer field... def value_invalid(self, value): - return bool(value and len(value) > 8) + return bool(value and len(unicode(value)) > 8) def filter_equal(self, query, value): if self.value_invalid(value):