From ac3fc25dfdc09a9c6fb3de76bc2cf3993e45626d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 29 Nov 2023 16:55:10 -0500 Subject: [PATCH] Fixes #14239: Fix CustomFieldChoiceSet search filter --- netbox/extras/filtersets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/extras/filtersets.py b/netbox/extras/filtersets.py index fec06726357..b33e7048843 100644 --- a/netbox/extras/filtersets.py +++ b/netbox/extras/filtersets.py @@ -122,8 +122,7 @@ def search(self, queryset, name, value): return queryset return queryset.filter( Q(name__icontains=value) | - Q(description__icontains=value) | - Q(extra_choices__contains=value) + Q(description__icontains=value) ) def filter_by_choice(self, queryset, name, value):