Fixes #6553: ProviderNetwork search should match on name

This commit is contained in:
jeremystretch
2021-06-08 14:06:17 -04:00
parent 755b976465
commit 16d56e9de0
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()