def scaffold_filters(self, name):
    '\n            Return filter object(s) for the field\n\n            :param name:\n                Either field name or field instance\n        '
    if isinstance(name, string_types):
        attr = self.model._fields.get(name)
    else:
        attr = name
    if (attr is None):
        raise Exception(('Failed to find field for filter: %s' % name))
    visible_name = None
    if (not isinstance(name, string_types)):
        visible_name = self.get_column_name(attr.name)
    if (not visible_name):
        visible_name = self.get_column_name(name)
    type_name = type(attr).__name__
    flt = self.filter_converter.convert(type_name, attr, visible_name)
    return flt
Return filter object(s) for the field

:param name:
    Either field name or field instance
def scaffold_filters(self, name):
    '\n            Return filter object(s) for the field\n\n            :param name:\n                Either field name or field instance\n        '
    if isinstance(name, string_types):
        attr = self.model._fields.get(name)
    else:
        attr = name
    if (attr is None):
        raise Exception(('Failed to find field for filter: %s' % name))
    visible_name = None
    if (not isinstance(name, string_types)):
        visible_name = self.get_column_name(attr.name)
    if (not visible_name):
        visible_name = self.get_column_name(name)
    type_name = type(attr).__name__
    flt = self.filter_converter.convert(type_name, attr, visible_name)
    return flt