

def get_field_index(self, field):
    try:
        return self._sorted_field_list.index(self)
    except ValueError:
        return (- 1)

dataset/ETHPy150Open coleifer/peewee/peewee.py ModelOptions.get_field_index/VarMisuse@23/30 `field`->`self`