Skip to content

Commit 8a23756

Browse files
committed
Closes #14596: Match against description field when searching for devices
1 parent cc0fc03 commit 8a23756

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/release-notes/version-3.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [#11039](https://github.com/netbox-community/netbox/issues/11039) - List parent prefixes under IP range view
88
* [#14507](https://github.com/netbox-community/netbox/issues/14507) - Print new NetBox version when running upgrade script
99
* [#14538](https://github.com/netbox-community/netbox/issues/14538) - Add the `available_at_site` filter for VLANs
10+
* [#14596](https://github.com/netbox-community/netbox/issues/14596) - Match against description field when searching for devices
1011

1112
### Bug Fixes
1213

netbox/dcim/filtersets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ def search(self, queryset, name, value):
10181018
Q(serial__icontains=value.strip()) |
10191019
Q(inventoryitems__serial__icontains=value.strip()) |
10201020
Q(asset_tag__icontains=value.strip()) |
1021+
Q(description_icontains=value.strip()) |
10211022
Q(comments__icontains=value) |
10221023
Q(primary_ip4__address__startswith=value) |
10231024
Q(primary_ip6__address__startswith=value)

0 commit comments

Comments
 (0)