Explorar el Código

fix(ipam): Add comments field to ASN search indexing (#22739)

Include comments field in ASN search with weight 5000 to enable
full-text search on ASN comment content.

Fixes #22736
Martin Hauser hace 6 días
padre
commit
84a024babd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      netbox/ipam/search.py

+ 1 - 0
netbox/ipam/search.py

@@ -22,6 +22,7 @@ class ASNIndex(SearchIndex):
         ('asn', 100),
         ('prefixed_name', 110),
         ('description', 500),
+        ('comments', 5000),
     )
     display_attrs = ('rir', 'role', 'tenant', 'description')