Просмотр исходного кода

Fixes #8838: Fix FieldError exception during global search

jeremystretch 3 лет назад
Родитель
Сommit
f2079de2cb
2 измененных файлов с 1 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 0 1
      netbox/dcim/filtersets.py

+ 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)
 
+* [#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
 * [#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)
         )
         try:
-            qs_filter |= Q(asn=int(value.strip()))
             qs_filter |= Q(asns__asn=int(value.strip()))
         except ValueError:
             pass