1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#1190: Allow partial string matching when searching on custom fields

This commit is contained in:
Jeremy Stretch
2017-06-01 16:57:32 -04:00
parent 95fdb549d7
commit 583830c652

View File

@ -32,7 +32,7 @@ class CustomFieldFilter(django_filters.Filter):
pass
return queryset.filter(
custom_field_values__field__name=self.name,
custom_field_values__serialized_value=value,
custom_field_values__serialized_value__icontains=value,
)