Closed
Description
Deployment Type
NetBox Cloud
NetBox Version
v4.1.3
Python Version
3.10
Steps to Reproduce
This issue is created from #17586. Nothing is happening in issue #17586, that's why I'm creating a new one with more details.
I am using https://demo.netbox.dev/ to reproduce the bug. The bug is located here: https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/search.py#L253 'type' has to be replaced with 'model'.
- Create a Rack Type. Set the model to "testRack".
- After the Rack Type is created, click on the global search bar, filter for "test"
- Click enter to search and this screen will appear
Expected Behavior
The global Search should filter for objects, with "test" in them. There should be no error.
Observed Behavior
An error page appeared because of this line: https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/search.py#L253 'type' has to be replaced with 'model'.