

def get_model(self):
    if (hasattr(model, 'model') and (self.model is not None)):
        model = self.model
    elif (hasattr(self, 'queryset') and (self.queryset is not None)):
        model = self.queryset.model
        self.model = model
    else:
        raise ImproperlyConfigured('No queryset or model defined.')
    return model

dataset/ETHPy150Open gerry/django-jqgrid/jqgrid.py JqGrid.get_model/VarMisuse@14/16 `self`->`model`