You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: