#NEWLINE# def _patch_list_editable( self ) : #NEWLINE# #INDENT# if self . list_editable : #NEWLINE# #INDENT# editable_new = list ( self . list_editable ) #NEWLINE# display_new = list ( self . list_display ) #NEWLINE# for field in self . list_editable : #NEWLINE# #INDENT# if ( field in self . trans_opts . fields ) : #NEWLINE# #INDENT# index = editable_new . index ( field ) #NEWLINE# display_index = display_new . index ( field ) #NEWLINE# translation_fields = get_translation_fields ( field ) #NEWLINE# editable_new [ index : ( index + 1 ) ] = self #NEWLINE# display_new [ display_index : ( display_index + 1 ) ] = translation_fields #NEWLINE# #UNINDENT# #UNINDENT# self . list_editable = editable_new #NEWLINE# self . list_display = display_new