Match the optional identifiers in every list's search box
This commit is contained in:
@@ -223,6 +223,11 @@ def list_network_devices():
|
||||
Asset.assetnumber.ilike(pattern),
|
||||
Asset.name.ilike(pattern),
|
||||
Asset.serialnumber.ilike(pattern),
|
||||
# The optional identifiers too (ADR-001). Global search matches
|
||||
# these, and a tag read off the machine has to find it here as
|
||||
# well - this box is where someone holding the label looks.
|
||||
Asset.gaugelabreference.ilike(pattern),
|
||||
Asset.maintenancereference.ilike(pattern),
|
||||
NetworkDevice.hostname.ilike(pattern),
|
||||
NetworkDeviceType.networkdevicetype.ilike(pattern),
|
||||
Vendor.vendor.ilike(pattern)
|
||||
|
||||
Reference in New Issue
Block a user