Skip to content

Commit e8dd486

Browse files
authored
adds related object to rack reservation changelogs (#19306)
1 parent e58815b commit e8dd486

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

netbox/dcim/models/racks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,3 +725,8 @@ def clean(self):
725725
@property
726726
def unit_list(self):
727727
return array_to_string(self.units)
728+
729+
def to_objectchange(self, action):
730+
objectchange = super().to_objectchange(action)
731+
objectchange.related_object = self.rack
732+
return objectchange

0 commit comments

Comments
 (0)