code: def to_representation(self, data):
          
          return [
              self.child.to_representation(item) if 'detail' in item else item for item in data
          ]
docs: This selectively calls to_representation on each result that was processed by create.