Fixes #6553: ProviderNetwork search should match on name

This commit is contained in:
jeremystretch 2021-06-08 14:06:17 -04:00
parent 7444110c79
commit cb4392628f
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,13 @@
# NetBox v2.11
## v2.11.7 (FUTURE)
### Bug Fixes
* [#6553](https://github.com/netbox-community/netbox/issues/6553) - ProviderNetwork search should match on name
---
## v2.11.6 (2021-06-04)
### Bug Fixes

View File

@ -104,6 +104,7 @@ class ProviderNetworkFilterSet(PrimaryModelFilterSet):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
).distinct()