فهرست منبع

Closes #4305: Add 10-inch option for rack width

Jeremy Stretch 6 سال پیش
والد
کامیت
a261060e5c
2فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 1 0
      docs/release-notes/version-2.7.md
  2. 2 0
      netbox/dcim/choices.py

+ 1 - 0
docs/release-notes/version-2.7.md

@@ -6,6 +6,7 @@
 
 
 * [#3949](https://github.com/netbox-community/netbox/issues/3949) - Revised the installation docs and upgrade script to employ a Python virtual environment
 * [#3949](https://github.com/netbox-community/netbox/issues/3949) - Revised the installation docs and upgrade script to employ a Python virtual environment
 * [#4281](https://github.com/netbox-community/netbox/issues/4281) - Allow filtering device component list views by type
 * [#4281](https://github.com/netbox-community/netbox/issues/4281) - Allow filtering device component list views by type
+* [#4305](https://github.com/netbox-community/netbox/issues/4305) - Add 10-inch option for rack width
 
 
 ## Bug Fixes
 ## Bug Fixes
 
 

+ 2 - 0
netbox/dcim/choices.py

@@ -55,10 +55,12 @@ class RackTypeChoices(ChoiceSet):
 
 
 class RackWidthChoices(ChoiceSet):
 class RackWidthChoices(ChoiceSet):
 
 
+    WIDTH_10IN = 10
     WIDTH_19IN = 19
     WIDTH_19IN = 19
     WIDTH_23IN = 23
     WIDTH_23IN = 23
 
 
     CHOICES = (
     CHOICES = (
+        (WIDTH_10IN, '10 inches'),
         (WIDTH_19IN, '19 inches'),
         (WIDTH_19IN, '19 inches'),
         (WIDTH_23IN, '23 inches'),
         (WIDTH_23IN, '23 inches'),
     )
     )