Not possible to specify more than one multiselect value in ObjectWidget URL parameters #12299
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.5.0-beta2
Python version
3.8
Steps to Reproduce
Expected Behavior
Widget should show devices belonging to either location with the id of 1 or 2.
Observed Behavior
Devices with location id 2 are shown. As the filters are passed as a JSON field and converted to a dict, it's not possible to have two entries with the same key. This is at odds with how the URL parameters are handled for multiselect fields, here the URL parameters would look like so:
?location_id=1&location_id=2
Passing the url parameters as a list also does not work:
This cause of the issue is similar to #12270. I believe setting
doseq=True
when calling urlencode would allow the above syntax to work, that is passing a list of values for the key with multiple values.The text was updated successfully, but these errors were encountered: