#NEWLINE# def get_choices_remove( self , qs ) : #NEWLINE# #INDENT# chosen = list ( self . chosen ) #NEWLINE# out = [ ] #NEWLINE# for ( i , choice ) in enumerate ( chosen ) : #NEWLINE# #INDENT# to_remove = [ c for c in chosen if ( c >= choice ) ] #NEWLINE# out . append ( FilterChoice ( self . render_choice_object ( to_remove ) , None , self . build_params ( remove = to_remove ) , FILTER_REMOVE ) ) #NEWLINE# out . extend ( self . bridge_choices ( chosen [ 0 : ( i + 1 ) ] , chosen [ ( i + 1 ) : ] ) ) #NEWLINE# #UNINDENT# return out