mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
#1190: Allow partial string matching when searching on custom fields
This commit is contained in:
parent
95fdb549d7
commit
583830c652
@ -32,7 +32,7 @@ class CustomFieldFilter(django_filters.Filter):
|
|||||||
pass
|
pass
|
||||||
return queryset.filter(
|
return queryset.filter(
|
||||||
custom_field_values__field__name=self.name,
|
custom_field_values__field__name=self.name,
|
||||||
custom_field_values__serialized_value=value,
|
custom_field_values__serialized_value__icontains=value,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user