Skip to content

Commit

Permalink
implements netbox-community#2166 - asset tag partial string search
Browse files Browse the repository at this point in the history
  • Loading branch information
lampwins committed Jun 14, 2018
1 parent 8bad3ae commit 82189de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def search(self, queryset, name, value):
Q(name__icontains=value) |
Q(serial__icontains=value.strip()) |
Q(inventory_items__serial__icontains=value.strip()) |
Q(asset_tag=value.strip()) |
Q(asset_tag__icontains=value.strip()) |
Q(comments__icontains=value)
).distinct()

Expand Down

0 comments on commit 82189de

Please sign in to comment.