Change default filter type for integer fields, in new grids

Treat that field like the numeric value it is.
This commit is contained in:
Lance Edgar 2016-04-06 21:16:23 -05:00
parent 7676312dd7
commit 90bde4f2e0

View file

@ -98,6 +98,8 @@ class AlchemyGrid(Grid):
factory = filters.AlchemyStringFilter factory = filters.AlchemyStringFilter
elif isinstance(column.type, sa.Numeric): elif isinstance(column.type, sa.Numeric):
factory = filters.AlchemyNumericFilter factory = filters.AlchemyNumericFilter
elif isinstance(column.type, sa.Integer):
factory = filters.AlchemyNumericFilter
elif isinstance(column.type, sa.Boolean): elif isinstance(column.type, sa.Boolean):
factory = filters.AlchemyBooleanFilter factory = filters.AlchemyBooleanFilter
elif isinstance(column.type, sa.Date): elif isinstance(column.type, sa.Date):