@classproperty
    def raw_id_fields(cls):
        # Dynamically set raw_id_fields based on settings
        threshold = get_cms_setting('RAW_ID_USERS')

        # Given a fresh django-cms install and a django settings with the
        # CMS_RAW_ID_USERS = CMS_PERMISSION = True
        # django throws an OperationalError when running
        # ./manage migrate
        # because auth_user doesn't exists yet
        try:
            threshold = threshold and threshold > get_user_model().objects.count()
        except OperationalError:
            threshold = False

        return ['user'] if threshold else []
dataset/ETHPy150Open divio/django-cms/cms/admin/permissionadmin.py/PagePermissionInlineAdmin.raw_id_fields/swapped operands of `>`