          # Unselect the options ------------------------------------------------
          self.get_select_option(to_box, str(self.jason.id)).click()
          self.get_select_option(to_box, str(self.john.id)).click()
  
      def test_basic(self):
          self.school.students.set([self.lisa, self.peter])
          self.school.alumni.set([self.lisa, self.peter])
  
 
</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'); });
        # Pressing buttons shouldn't change the URL.
        self.assertEqual(self.selenium.current_url, original_url)

          # Unselect the options ------------------------------------------------
          self.get_select_option(to_box, str(self.jason.id)).click()
          self.get_select_option(to_box, str(self.john.id)).click()
  
        # Pressing buttons shouldn't change the URL.
        self.assertEqual(self.selenium.current_url, original_url)

      def test_basic(self):
          self.school.students.set([self.lisa, self.peter])
          self.school.alumni.set([self.lisa, self.peter])
  
keep keep keep add keep keep keep keep
 Fixed #26612 -- Fixed SelectFilter2 buttons changing URL. 
tests/admin_widgets/tests.py