From d93569a5e1c01689af1d0770387b35453954babb Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 29 May 2024 11:48:59 -0700 Subject: [PATCH] 16261 fix graphql lookup for MultiValueCharFilter fields --- netbox/netbox/graphql/filter_mixins.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/netbox/graphql/filter_mixins.py b/netbox/netbox/graphql/filter_mixins.py index c7436453d..e77acdfae 100644 --- a/netbox/netbox/graphql/filter_mixins.py +++ b/netbox/netbox/graphql/filter_mixins.py @@ -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