change some foreignkey to raw_id_fields in resources's models