Change default filter type for integer fields, in new grids
Treat that field like the numeric value it is.
This commit is contained in:
parent
7676312dd7
commit
90bde4f2e0
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue