Fix type error in grid numeric filter
This commit is contained in:
parent
e13e2cfaaf
commit
d4defef138
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue