The threshold check to decide whether we should *try* to use a raw ID field is applied in ``cms/admin/permissionadmin.py``. The "< 500" check applied here is only to prevent the raw ID blowing up with a 414 error, and there's little point making this configurable, IMO (though 500 is a little arbitrary).