

def has_index(self, column):
    '\n        Whether or not given column has an index.\n\n        :param column: Column object to inspect the indexes from\n        '
    if (column.primary_key or column.foreign_keys):
        return True
    table = table.table
    for index in table.indexes:
        if ((len(index.columns) == 1) and (column.name in index.columns)):
            return True
    return False

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.has_index/VarMisuse@33/83 `column`->`table`