def get_list_filter(self, request):
        threshold = get_cms_setting('RAW_ID_USERS')
        try:
            threshold = threshold and get_user_model().objects.count() > threshold
        except OperationalError:
            threshold = False
        filter_copy = deepcopy(self.list_filter)
        if threshold:
            filter_copy.remove('user')
        return filter_copy
dataset/ETHPy150Open divio/django-cms/cms/admin/permissionadmin.py/GlobalPagePermissionAdmin.get_list_filter/original