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

Add missing choices for new cable and rack fields

Jeremy Stretch 7 лет назад
Родитель
Сommit
f0874f4be0
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      netbox/dcim/api/views.py

+ 2 - 1
netbox/dcim/api/views.py

@@ -35,12 +35,13 @@ from .exceptions import MissingFilterException
 
 class DCIMFieldChoicesViewSet(FieldChoicesViewSet):
     fields = (
+        (Cable, ['length_unit']),
         (Device, ['face', 'status']),
         (ConsolePort, ['connection_status']),
         (Interface, ['connection_status', 'form_factor', 'mode']),
         (InterfaceTemplate, ['form_factor']),
         (PowerPort, ['connection_status']),
-        (Rack, ['type', 'width']),
+        (Rack, ['outer_unit', 'status', 'type', 'width']),
         (Site, ['status']),
     )