mirror of
https://github.com/lucaspalomodevelop/netbox.git
synced 2026-03-18 09:44:45 +00:00
Closes #1771: Added name filter for racks
This commit is contained in:
parent
da3935ff36
commit
89bfb4f722
@ -163,7 +163,7 @@ class RackFilter(CustomFieldFilterSet, django_filters.FilterSet):
|
||||
|
||||
class Meta:
|
||||
model = Rack
|
||||
fields = ['serial', 'type', 'width', 'u_height', 'desc_units']
|
||||
fields = ['name', 'serial', 'type', 'width', 'u_height', 'desc_units']
|
||||
|
||||
def search(self, queryset, name, value):
|
||||
if not value.strip():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user