              self.assertEqual(self.has_css_class(choose_all_link, 'active'), choose_all)
              self.assertEqual(self.has_css_class(remove_all_link, 'active'), remove_all)
  
      def execute_basic_operations(self, mode, field_name):
          from_box = '#id_%s_from' % field_name
          to_box = '#id_%s_to' % field_name
          choose_link = 'id_%s_add_link' % field_name
          choose_all_link = 'id_%s_add_all_link' % field_name
          remove_link = 'id_%s_remove_link' % field_name
 
</s> remove             var move_selection = function(elem, move_func, from, to) {
 </s> add             var move_selection = function(e, elem, move_func, from, to) { </s> remove             addEvent(choose_all, 'click', function(e) { move_selection(this, SelectBox.move_all, field_id + '_from', field_id + '_to'); });
            addEvent(add_link, 'click', function(e) { move_selection(this, SelectBox.move, field_id + '_from', field_id + '_to'); });
            addEvent(remove_link, 'click', function(e) { move_selection(this, SelectBox.move, field_id + '_to', field_id + '_from'); });
            addEvent(clear_all, 'click', function(e) { move_selection(this, SelectBox.move_all, field_id + '_to', field_id + '_from'); });
 </s> add             addEvent(choose_all, 'click', function(e) { move_selection(e, this, SelectBox.move_all, field_id + '_from', field_id + '_to'); });
            addEvent(add_link, 'click', function(e) { move_selection(e, this, SelectBox.move, field_id + '_from', field_id + '_to'); });
            addEvent(remove_link, 'click', function(e) { move_selection(e, this, SelectBox.move, field_id + '_to', field_id + '_from'); });
            addEvent(clear_all, 'click', function(e) { move_selection(e, this, SelectBox.move_all, field_id + '_to', field_id + '_from'); });
        original_url = self.selenium.current_url

              self.assertEqual(self.has_css_class(choose_all_link, 'active'), choose_all)
              self.assertEqual(self.has_css_class(remove_all_link, 'active'), remove_all)
  
      def execute_basic_operations(self, mode, field_name):
        original_url = self.selenium.current_url

          from_box = '#id_%s_from' % field_name
          to_box = '#id_%s_to' % field_name
          choose_link = 'id_%s_add_link' % field_name
          choose_all_link = 'id_%s_add_all_link' % field_name
          remove_link = 'id_%s_remove_link' % field_name
keep keep keep add keep keep keep keep keep
 Fixed #26612 -- Fixed SelectFilter2 buttons changing URL. 
tests/admin_widgets/tests.py