

def create_form(self, form):
    '\n        Creates the form.\n\n        :param form: ModelForm instance\n        '
    attrs = OrderedDict()
    for (key, property_) in sa.inspect(self.model_class).attrs.items():
        if (not isinstance(property_, ColumnProperty)):
            continue
        if self.skip_column_property(property_):
            continue
        attrs[key] = property_
    for attr in translated_attributes(self.model_class):
        attrs[attr.key] = form.property
    return self.create_fields(form, self.filter_attributes(attrs))

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.create_form/VarMisuse@100/144 `attr`->`form`