Commit e49d08ac authored by Jacob Magnusson's avatar Jacob Magnusson

Python 3 fix: FilterConverter sub-classing bug

Couldn't be instantiated more than once. This made it impossible to make a subclass of FilterConverter.
parent 1c63ca96
...@@ -266,7 +266,7 @@ def convert(*args): ...@@ -266,7 +266,7 @@ def convert(*args):
See :mod:`flask.ext.admin.contrib.sqla.filters` for usage example. See :mod:`flask.ext.admin.contrib.sqla.filters` for usage example.
""" """
def _inner(func): def _inner(func):
func._converter_for = map(str.lower, args) func._converter_for = list(map(str.lower, args))
return func return func
return _inner return _inner
......
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