it turns out that the update also happens for all other instances of the form.
Example: I added the following to selectable/tests/test_functional.py
def test_update_query_parameters_isolation(self):
form = SimpleForm()
form.fields["thing"].widget.update_query_parameters({"foo": "bar"})
self.assertIn("foo=bar", form.as_ul())
form = SimpleForm() # Construct a new instance
self.assertNotIn("foo=bar", form.as_ul())
and this test failed: the new form instance still had foo=bar in the URL.
Fix seems to be adding the following to AutoCompleteWidget
When one has an instance of the form, and calls
it turns out that the update also happens for all other instances of the form.
Example: I added the following to
selectable/tests/test_functional.py
and this test failed: the new form instance still had
foo=bar
in the URL.Fix seems to be adding the following to
AutoCompleteWidget