

def get_colmodels(self):
    colmodels = []
    opts = self.get_model()._meta
    for field_name in self.get_field_names():
        (field, model, direct, m2m) = self.lookup_foreign_key_field(opts, direct)
        colmodel = self.field_to_colmodel(field, field_name)
        override = self.colmodel_overrides.get(field_name)
        if override:
            colmodel.update(override)
        colmodels.append(colmodel)
    return colmodels

dataset/ETHPy150Open gerry/django-jqgrid/jqgrid.py JqGrid.get_colmodels/VarMisuse@52/67 `field_name`->`direct`