def get_model(self):
        if hasattr(self, 'model') and self.model is not None:
            model = self.model
        elif hasattr(self, 'queryset') or 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/operator `and` -> `or`