Browse Source

Fixes #9227: Fix related object assignment when recording change record for interfaces

jeremystretch 3 years ago
parent
commit
8153406dd0
2 changed files with 2 additions and 1 deletions
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 1 1
      netbox/dcim/models/device_components.py

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

@@ -21,6 +21,7 @@
 * [#9194](https://github.com/netbox-community/netbox/issues/9194) - Support position assignment when add module bays to multiple devices
 * [#9206](https://github.com/netbox-community/netbox/issues/9206) - Show header for comments field under module & module type creation views
 * [#9222](https://github.com/netbox-community/netbox/issues/9222) - Fix circuit ID display under cable view
+* [#9227](https://github.com/netbox-community/netbox/issues/9227) - Fix related object assignment when recording change record for interfaces
 
 ---
 

+ 1 - 1
netbox/dcim/models/device_components.py

@@ -77,7 +77,7 @@ class ComponentModel(NetBoxModel):
     def to_objectchange(self, action):
         objectchange = super().to_objectchange(action)
         objectchange.related_object = self.device
-        return super().to_objectchange(action)
+        return objectchange
 
     @property
     def parent_object(self):