make PATCH respect specified primary_key

When specifying the primary key (eg `manager.create_api(User, primary_key='username')`), trying to do a PUT or PATCH was returning 404 errors. This little change fixes that.