          # All objects and "Loading more results".
          self.assertEqual(len(results), PAGINATOR_SIZE + 11)
          # Limit the results with the search field.
          search.send_keys('Who')
          self.assertTrue(result_container.is_displayed())
          results = result_container.find_elements_by_css_selector('.select2-results__option')
          self.assertEqual(len(results), 1)
          # Select the result.
          search.send_keys(Keys.RETURN)
          select = Select(self.selenium.find_element_by_id('id_question'))
 
</s>
        # Ajax request is delayed.
        self.assertTrue(result_container.is_displayed())
        results = result_container.find_elements_by_css_selector('.select2-results__option')
        self.assertEqual(len(results), PAGINATOR_SIZE + 12)
        # Wait for ajax delay.
        time.sleep(0.25)
          # All objects and "Loading more results".
          self.assertEqual(len(results), PAGINATOR_SIZE + 11)
          # Limit the results with the search field.
          search.send_keys('Who')
        # Ajax request is delayed.
        self.assertTrue(result_container.is_displayed())
        results = result_container.find_elements_by_css_selector('.select2-results__option')
        self.assertEqual(len(results), PAGINATOR_SIZE + 12)
        # Wait for ajax delay.
        time.sleep(0.25)
          self.assertTrue(result_container.is_displayed())
          results = result_container.find_elements_by_css_selector('.select2-results__option')
          self.assertEqual(len(results), 1)
          # Select the result.
          search.send_keys(Keys.RETURN)
          select = Select(self.selenium.find_element_by_id('id_question'))
keep keep keep add keep keep keep keep keep keep
 Fixed #30722 -- Added default rate-limiting requests to admin's Select2 widget.
tests/admin_views/test_autocomplete_view.py