

def get_queryset(self):
    '\n        Get the list of items for this view. This must be an iterable, and may\n        be a queryset (in which qs-specific behavior will be enabled).\n        '
    if (self.queryset is not None):
        queryset = self.queryset
        if hasattr(queryset, '_clone'):
            queryset = queryset._clone()
    elif (self.model is not None):
        queryset = self.model._default_manager.all()
    else:
        raise ImproperlyConfigured(("'%s' must define 'queryset' or 'model'" % self.__class__.__name__))
    return queryset

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/views/generic/list.py MultipleObjectMixin.get_queryset/original