Browse Source

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

Jeremy Stretch 8 years ago
parent
commit
583830c652
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/extras/filters.py

+ 1 - 1
netbox/extras/filters.py

@@ -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,
         )