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

Fixes #9100: Include position field in module type YAML export

jeremystretch 3 лет назад
Родитель
Сommit
a9e05aec7c
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 1 0
      netbox/dcim/models/devices.py

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

@@ -15,6 +15,7 @@
 * [#9061](https://github.com/netbox-community/netbox/issues/9061) - Change inheritance order for DeviceComponentFilterSets
 * [#9065](https://github.com/netbox-community/netbox/issues/9065) - Min/max VID should not be required when filtering VLAN groups
 * [#9079](https://github.com/netbox-community/netbox/issues/9079) - Fail validation when an inventory item is assigned as its own parent
+* [#9100](https://github.com/netbox-community/netbox/issues/9100) - Include position field in module type YAML export
 
 ---
 

+ 1 - 0
netbox/dcim/models/devices.py

@@ -257,6 +257,7 @@ class DeviceType(NetBoxModel):
                 {
                     'name': c.name,
                     'label': c.label,
+                    'position': c.position,
                     'description': c.description,
                 }
                 for c in self.modulebaytemplates.all()