From 3fc82207c81c4e55ac9710ed4288f6ebc3caf1fa Mon Sep 17 00:00:00 2001 From: Arthur Date: Mon, 13 May 2024 10:10:23 -0700 Subject: [PATCH] 16078 make GraphQL NumberFilter optional --- netbox/netbox/graphql/filter_mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/graphql/filter_mixins.py b/netbox/netbox/graphql/filter_mixins.py index bfb958563..322435c72 100644 --- a/netbox/netbox/graphql/filter_mixins.py +++ b/netbox/netbox/graphql/filter_mixins.py @@ -87,7 +87,7 @@ def map_strawberry_type(field): pass elif issubclass(type(field), django_filters.NumberFilter): should_create_function = True - attr_type = int + attr_type = int | None elif issubclass(type(field), django_filters.ModelMultipleChoiceFilter): should_create_function = True attr_type = List[str] | None