#NEWLINE# def get_fields( self ) : #NEWLINE# #INDENT# '\n        Return all fields as normal, with one exception: replace every instance\n        of TranslationSerializerField with ESTranslationSerializerField.\n        ' #NEWLINE# fields = super ( BaseESSerializer , self ) . get_fields ( ) #NEWLINE# for ( key , field ) in fields . items ( ) : #NEWLINE# #INDENT# if isinstance ( field , TranslationSerializerField ) : #NEWLINE# #INDENT# fields [ key ] = ESTranslationSerializerField ( source = field . source ) #NEWLINE# #UNINDENT# #UNINDENT# return self