Encode values for "between" query filter
This commit is contained in:
parent
bae6bc2133
commit
8522123cd3
|
@ -447,12 +447,12 @@ class AlchemyGridFilter(GridFilter):
|
|||
if start_value:
|
||||
if self.value_invalid(start_value):
|
||||
return query
|
||||
query = query.filter(self.column >= start_value)
|
||||
query = query.filter(self.column >= self.encode_value(start_value))
|
||||
|
||||
if end_value:
|
||||
if self.value_invalid(end_value):
|
||||
return query
|
||||
query = query.filter(self.column <= end_value)
|
||||
query = query.filter(self.column <= self.encode_value(end_value))
|
||||
|
||||
return query
|
||||
|
||||
|
|
Loading…
Reference in a new issue