code: def get_queryset(self):
          
          if self.queryset is None:
              raise ImproperlyConfigured(
                  "'%s' must define 'queryset'" % self.__class__.__name__)
          return self.queryset()
docs: Check that the queryset is defined and call it.