def get_avail_models(request):
    """ Returns (model, perm,) for all models user can possibly see """
    items = []
    admin_site = get_admin_site(request=request)

    for model, model_admin in admin_site._registry.items():
        perms = model_admin.get_model_perms(request)
        if perms.values() not in True:
            continue
        items.append((model, perms,))
    return items
dataset/ETHPy150Open django-admin-tools/django-admin-tools/admin_tools/utils.py/get_avail_models/swapped operands of `not in`