Allow lookup of ratings by PK or slug (bug 859160)