mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 05:21:55 -06:00
17457 Make NumericArrayFilter optional
This commit is contained in:
parent
af5fb8f923
commit
c0d5d98df2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user