id_regex = re.compile('/(\\d+)/$')
object_id = id_regex.findall(your_url)[0]
your_object = [x for x in YourResource().
    get_object_list(request) if x.id == int(object_id)][0]
Get model object from tastypie uri?