Sfoglia il codice sorgente

17457 Make NumericArrayFilter optional

Arthur Hanson 1 anno fa
parent
commit
c0d5d98df2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      netbox/netbox/graphql/filter_mixins.py

+ 1 - 1
netbox/netbox/graphql/filter_mixins.py

@@ -47,7 +47,7 @@ def map_strawberry_type(field):
         pass
         pass
     elif isinstance(field, NumericArrayFilter):
     elif isinstance(field, NumericArrayFilter):
         should_create_function = True
         should_create_function = True
-        attr_type = int
+        attr_type = int | None
     elif isinstance(field, TreeNodeMultipleChoiceFilter):
     elif isinstance(field, TreeNodeMultipleChoiceFilter):
         should_create_function = True
         should_create_function = True
         attr_type = List[str] | None
         attr_type = List[str] | None