Просмотр исходного кода

Closes #2357: Enable filtering of devices by rack face

Jeremy Stretch 7 лет назад
Родитель
Сommit
971f3cd63c
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      netbox/dcim/filters.py

+ 1 - 0
CHANGELOG.md

@@ -2,6 +2,7 @@ v2.5.7 (FUTURE)
 
 ## Enhancements
 
+* [#2357](https://github.com/digitalocean/netbox/issues/2357) - Enable filtering of devices by rack face
 * [#2903](https://github.com/digitalocean/netbox/issues/2903) - Clarify purpose of tags field on interface edit form
 
 ## Bug Fixes

+ 1 - 1
netbox/dcim/filters.py

@@ -602,7 +602,7 @@ class DeviceFilter(CustomFieldFilterSet):
 
     class Meta:
         model = Device
-        fields = ['serial', 'position']
+        fields = ['serial', 'position', 'face']
 
     def search(self, queryset, name, value):
         if not value.strip():