Commit 3cb4be1a authored by librodo's avatar librodo

According to Postgres doc `DECIMAL` is equivalent to `NUMERIC`

https://www.postgresql.org/docs/9.5/static/datatype-numeric.html

so flask_admin.contrib.sqla.filters.FilterConverter should treat this the same
parent fa9f3b94
......@@ -381,12 +381,12 @@ class FilterConverter(filters.BaseFilterConverter):
def conv_bool(self, column, name, **kwargs):
return [f(column, name, **kwargs) for f in self.bool_filters]
@filters.convert('int', 'integer', 'smallinteger', 'smallint', 'numeric',
@filters.convert('int', 'integer', 'smallinteger', 'smallint',
'biginteger', 'bigint', 'mediumint')
def conv_int(self, column, name, **kwargs):
return [f(column, name, **kwargs) for f in self.int_filters]
@filters.convert('float', 'real', 'decimal', 'double_precision', 'double')
@filters.convert('float', 'real', 'decimal', 'numeric', 'double_precision', 'double')
def conv_float(self, column, name, **kwargs):
return [f(column, name, **kwargs) for f in self.float_filters]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment