'Based on the ``full_resource``, returns either the endpoint or the data
from ``full_dehydrate`` for the related resource.'

def dehydrate_related(self, bundle, related_resource, for_list=True):

    should_dehydrate_full_resource = self.should_full_dehydrate(bundle, for_list=for_list)
    if (not should_dehydrate_full_resource):
        return related_resource.get_resource_uri(bundle)
    else:
        bundle = related_resource.build_bundle(obj=bundle.obj, request=bundle.request, objects_saved=bundle.objects_saved)
        return related_resource.full_dehydrate(bundle)
