code: def get_queryset(qs=None, app=DEFAULT_APP, db_alias=None):
      
      # app = get_app(app);
      # print 'get_model' + repr(model) + ' app ' + repr(app)
      if isinstance(qs, (djmodels.Manager, djmodels.query.QuerySet)):
          qs = qs.all()
      else:
          qs = get_model(qs, app=app).objects.all()
      if db_alias:
          return qs.using(db_alias)
      else:
          return qs
docs: >>> get_queryset('Permission', app='django.contrib.auth').count() > 0
      True