Explorar el Código

Fixes #6553: ProviderNetwork search should match on name

jeremystretch hace 4 años
padre
commit
cb4392628f
Se han modificado 2 ficheros con 9 adiciones y 0 borrados
  1. 8 0
      docs/release-notes/version-2.11.md
  2. 1 0
      netbox/circuits/filtersets.py

+ 8 - 0
docs/release-notes/version-2.11.md

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

+ 1 - 0
netbox/circuits/filtersets.py

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