Skip to content

Commit

Permalink
#1190: Allow partial string matching when searching on custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jun 1, 2017
1 parent 95fdb54 commit 583830c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def filter(self, queryset, value):
pass
return queryset.filter(
custom_field_values__field__name=self.name,
custom_field_values__serialized_value=value,
custom_field_values__serialized_value__icontains=value,
)


Expand Down

0 comments on commit 583830c

Please sign in to comment.