

def create_field(self, prop, column):
    '\n        Create form field for given column.\n\n        :param prop: SQLAlchemy ColumnProperty object.\n        :param column: SQLAlchemy Column object.\n        '
    kwargs = {
        
    }
    field_class = self.get_field_class(column)
    kwargs['default'] = self.default(column)
    kwargs['validators'] = self.create_validators(prop, column)
    kwargs['filters'] = self.filters(column)
    kwargs.update(self.type_agnostic_parameters(prop.key, column))
    kwargs.update(self.type_specific_parameters(column))
    if (prop.key in self.meta.field_args):
        kwargs.update(field_class.meta.field_args[prop.key])
    if issubclass(field_class, DecimalField):
        if hasattr(column.type, 'scale'):
            kwargs['places'] = column.type.scale
    field = field_class(**kwargs)
    return field

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.create_field/VarMisuse@117/189 `self`->`field_class`