Exception with multiselect custom field and query="null" #13606
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.5.9
Python version
3.8
Steps to Reproduce
/dcim/devices/?cf_foo=null
Expected Behavior
The request to be processed, or at least ignored. (Ideally it would show devices which have no selection made for the given custom field)
Observed Behavior
A ValueError was raised.
Here is the backtrace:
Additional info:
cf_foo=null
andcf_foo__n=null
work with custom fields of type "select" rather than "multiselect"cf_foo=a
works as expectedcf_foo__n=a
does not work (it has no effect, all devices are shown); similarly,cf_foo__n=null
has no effect.The text was updated successfully, but these errors were encountered: