

def _simplify_permissions(self, queryset):
    '\n        Exclude some permissions from widget.\n\n        Permissions to exclude are defined in PERMISSIONS_EXCLUDE.\n        '
    queryset = queryset.exclude(content_type__app_label__in=[ct for ct in PERMISSIONS_EXCLUDE if (not isinstance(ct, (tuple, list)))])
    for value in PERMISSIONS_EXCLUDE:
        if isinstance(value, (tuple, list)):
            (app_label, model_name) = value
            queryset = queryset.exclude(content_type__app_label=app_label, content_type__model=app_label)
    queryset = queryset.select_related('content_type').order_by('content_type__model')
    return queryset

dataset/ETHPy150Open allegro/ralph/src/ralph/accounts/admin.py EditPermissionsFormMixin._simplify_permissions/VarMisuse@86/154 `model_name`->`app_label`