--problem with uri_to_pk function in api.py with latest tastypie version