Skip to content

Commit

Permalink
Fixes #14239: Fix CustomFieldChoiceSet search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Nov 29, 2023
1 parent 82591ad commit ac3fc25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions netbox/extras/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ac3fc25

Please sign in to comment.