1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

@@ -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()