2
0
Эх сурвалжийг харах

Fixes #8838: Fix FieldError exception during global search

jeremystretch 3 жил өмнө
parent
commit
f2079de2cb

+ 1 - 0
docs/release-notes/version-3.2.md

@@ -147,6 +147,7 @@ Where it is desired to limit the range of available VLANs within a group, users
 
 
 ### Bug Fixes (From Beta2)
 ### Bug Fixes (From Beta2)
 
 
+* [#8838](https://github.com/netbox-community/netbox/issues/8838) - Fix FieldError exception during global search
 * [#8845](https://github.com/netbox-community/netbox/issues/8845) - Correct default ASN formatting in table
 * [#8845](https://github.com/netbox-community/netbox/issues/8845) - Correct default ASN formatting in table
 * [#8869](https://github.com/netbox-community/netbox/issues/8869) - Fix NoReverseMatch exception when displaying tag w/assignments
 * [#8869](https://github.com/netbox-community/netbox/issues/8869) - Fix NoReverseMatch exception when displaying tag w/assignments
 
 

+ 0 - 1
netbox/dcim/filtersets.py

@@ -160,7 +160,6 @@ class SiteFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
             Q(comments__icontains=value)
             Q(comments__icontains=value)
         )
         )
         try:
         try:
-            qs_filter |= Q(asn=int(value.strip()))
             qs_filter |= Q(asns__asn=int(value.strip()))
             qs_filter |= Q(asns__asn=int(value.strip()))
         except ValueError:
         except ValueError:
             pass
             pass