Skip to content

Commit

Permalink
Closes #1771: Added name filter for racks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 14, 2017
1 parent da3935f commit 89bfb4f
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 @@ -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():
Expand Down

0 comments on commit 89bfb4f

Please sign in to comment.