mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Fixes #6553: ProviderNetwork search should match on name
This commit is contained in:
parent
7444110c79
commit
cb4392628f
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user