#NEWLINE# def to_representation( self , data ) : #NEWLINE# #INDENT# if isinstance ( data , Result ) : #NEWLINE# #INDENT# data = data . to_dict ( ) #NEWLINE# #UNINDENT# obj = self . fake_object ( data ) #NEWLINE# return super ( BaseESSerializer , self ) . to_representation ( obj )