16078 make GraphQL NumberFilter optional

This commit is contained in:
Arthur 2024-05-13 10:10:23 -07:00
parent 4b91e79d1e
commit 3fc82207c8

View File

@ -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