Updated get_resource_uri to work with last versions of tastypie.