Преглед на файлове

17457 Make NumericArrayFilter optional

Arthur Hanson преди 1 година
родител
ревизия
c0d5d98df2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
     elif isinstance(field, NumericArrayFilter):
         should_create_function = True
-        attr_type = int
+        attr_type = int | None
     elif isinstance(field, TreeNodeMultipleChoiceFilter):
         should_create_function = True
         attr_type = List[str] | None