

def create_fields(self, form, properties):
    '\n        Creates fields for given form based on given model attributes.\n\n        :param form: form to attach the generated fields into\n        :param attributes: model attributes to generate the form fields from\n        '
    for (key, prop) in properties.items():
        column = prop.columns[0]
        try:
            field = self.create_field(prop, column)
        except UnknownTypeException:
            if (not self.meta.skip_unknown_types):
                raise
            else:
                continue
        if (not hasattr(form, column)):
            setattr(form, key, field)

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.create_fields/VarMisuse@91/176 `key`->`column`