#NEWLINE# def deserialize( self , source ) : #NEWLINE# #INDENT# '\n        Create an instance of the Model from the elasticsearch source\n        or an EsQueryset\n        Note: IMPORTANT: there is no certainty that the elasticsearch instance\n        actually is synchronised with the db one.\n        That is why the save() method is desactivated.\n        ' #NEWLINE# serializer = self . get_serializer ( ) #NEWLINE# if isinstance ( source , EsQueryset ) : #NEWLINE# #INDENT# return [ serializer . deserialize ( source ) for e in source ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return serializer . deserialize ( source )