-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot search virtual device context by name #13100
Comments
Issue is here: netbox/netbox/dcim/filtersets.py Line 1082 in 07ae7c8
The search method searches an integer field without checking if the query is an integer. So it works for q=1 but not for q=string. An example of how we've done this other places: netbox/netbox/dcim/filtersets.py Lines 167 to 170 in 07ae7c8
|
just as a quick aside, searching by name specifically does work with e.g. https://demo.netbox.dev/dcim/virtual-device-contexts/?name=foo (as with other search forms, |
NetBox version
3.5.4
Python version
3.8
Steps to Reproduce
reproduced on demo.netbox.dev. it does not matter if any VDCs exist
Expected Behavior
a list of VDCs matching the name
asdf
is returnedObserved Behavior
the following server error is returned:
The text was updated successfully, but these errors were encountered: