Asset Tag field requires exact match in filtering #2166
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Issue type
[ x ] Feature request
[ ] Bug report
[ ] Documentation
Environment
Description
The
asset_tag
field on the Device model does not allow for partial string matching with filtering. This causes annoyances related to inconsistency because other fields like name and serial number support partial matching. While an asset tag is generally unique, for longer tag IDs, operators commonly wish to strip the first part of the tag which is not unique when searching.I would like to see the
asset_tag
field use the icontains filter in the DeviceFilterhttps://github.com/digitalocean/netbox/blob/develop/netbox/dcim/filters.py#L512
The text was updated successfully, but these errors were encountered: