Explorar o código

Merge pull request #8735 from minitriga/issue_8629

Add description to tag table search function
Jeremy Stretch %!s(int64=4) %!d(string=hai) anos
pai
achega
3bf90c3c38
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 4 0
      docs/release-notes/version-3.1.md
  2. 2 1
      netbox/extras/filtersets.py

+ 4 - 0
docs/release-notes/version-3.1.md

@@ -2,6 +2,10 @@
 
 ## v3.1.9 (FUTURE)
 
+### Enhancements
+
+* [#8629](https://github.com/netbox-community/netbox/issues/8629) - Add description to tag table search function
+
 ### Bug Fixes
 
 * [#8546](https://github.com/netbox-community/netbox/issues/8546) - Fix bulk import to restrict bridge, parent, and LAG to device interfaces

+ 2 - 1
netbox/extras/filtersets.py

@@ -184,7 +184,8 @@ class TagFilterSet(ChangeLoggedModelFilterSet):
             return queryset
         return queryset.filter(
             Q(name__icontains=value) |
-            Q(slug__icontains=value)
+            Q(slug__icontains=value) |
+            Q(description__icontains=value)
         )
 
     def _content_type(self, queryset, name, values):