16261 fix graphql lookup for MultiValueCharFilter fields

This commit is contained in:
Arthur 2024-05-29 11:48:59 -07:00
parent b8cfdcd2ed
commit d93569a5e1

View File

@ -24,6 +24,8 @@ def map_strawberry_type(field):
pass
elif isinstance(field, MultiValueCharFilter):
should_create_function = False
# Note: Need to use the legacy FilterLookup from filters, not from
# strawberry_django.FilterLookup as we currently have USE_DEPRECATED_FILTERS
attr_type = strawberry_django.filters.FilterLookup[str] | None
elif isinstance(field, MultiValueDateFilter):
attr_type = auto