1👍
✅
dehydrate
is called after full_dehydrate
. Overwrite full_dehydrate
function.
def full_dehydrate(self, bundle, for_list=False):
self.path.full = bundle.request.GET.get('full_path') == "1"
return super(RideResource, self).full_dehydrate(bundle, for_list)
Source:stackexchange.com