def _get_queryset(klass):
    if isinstance(klass, QuerySet):
        return klass
    elif isinstance(klass, Manager):
        manager = klass
    else:
        manager = klass._default_manager
    return manager.all()
Returns a QuerySet from a Model, Manager, or QuerySet. Created to make
dataset/ETHPy150Open dcramer/django-compositepks/django/shortcuts/__init__.py/_get_queryset