make PATCH respect specified primary_key

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