Fix type error in grid numeric filter

This commit is contained in:
Lance Edgar 2017-01-03 10:02:14 -06:00
parent e13e2cfaaf
commit d4defef138

View file

@ -377,7 +377,7 @@ class AlchemyNumericFilter(AlchemyGridFilter):
# term for integer field... # term for integer field...
def value_invalid(self, value): 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): def filter_equal(self, query, value):
if self.value_invalid(value): if self.value_invalid(value):