views.RestfulView: fixed inheritance when `pk` is not set in parent classes