mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-12 10:38:16 -06:00
16078 make GraphQL NumberFilter optional
This commit is contained in:
parent
4b91e79d1e
commit
3fc82207c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user