[Fixed]-Tastypie get full resource only works the second time

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)

Leave a comment