示例#1
0
 def transform_followed(self, obj, value):
     if not obj.followed:
         return None
     return embeded_chef_serializer(obj.followed)
示例#2
0
 def transform_chef(self, obj, value):
     return embeded_chef_serializer(obj.chef)
示例#3
0
 def transform_creator(self, obj, value):
     if not obj.creator:
         return None
     return embeded_chef_serializer(obj.creator)