def transform_followed(self, obj, value): if not obj.followed: return None return embeded_chef_serializer(obj.followed)
def transform_chef(self, obj, value): return embeded_chef_serializer(obj.chef)
def transform_creator(self, obj, value): if not obj.creator: return None return embeded_chef_serializer(obj.creator)