mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
16261 fix graphql lookup for MultiValueCharFilter fields
This commit is contained in:
parent
b8cfdcd2ed
commit
d93569a5e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user