Skip to content

Commit

Permalink
Merge pull request #182 from ArnesSI/asset-filter
Browse files Browse the repository at this point in the history
asset general search now matches tenant and owner names (icontains)
  • Loading branch information
matejv authored Jul 16, 2024
2 parents 732d134 + e15f26b commit 405a0c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netbox_inventory/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def search(self, queryset, name, value):
| Q(delivery__name__icontains=value)
| Q(purchase__name__icontains=value)
| Q(purchase__supplier__name__icontains=value)
| Q(tenant__name__icontains=value)
| Q(owner__name__icontains=value)
)
custom_field_filters = get_asset_custom_fields_search_filters()
for custom_field_filter in custom_field_filters:
Expand Down

0 comments on commit 405a0c2

Please sign in to comment.