def get_queryset(self):
        if self.queryset is None:
            if self.model:
                return self.model._default_manager.all()
            else:
                raise ImproperlyConfigured("%(cls)s is missing a queryset. Define "
                                           "%(cls)s.model, %(cls)s.queryset, or override "
                                           "%(cls)s.get_queryset()." % {
                                                'cls': self.__class__.__name__
                                        })
        return self.queryset._clone()
Test service_schema validation.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/views/generic/detail.py/SingleObjectMixin.get_queryset--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_service_schema