Parcourir la source

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

jeremystretch il y a 3 ans
Parent
commit
a9e05aec7c
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  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
 * [#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
 * [#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
 * [#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,
                     'name': c.name,
                     'label': c.label,
                     'label': c.label,
+                    'position': c.position,
                     'description': c.description,
                     'description': c.description,
                 }
                 }
                 for c in self.modulebaytemplates.all()
                 for c in self.modulebaytemplates.all()