mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
adds related object to rack reservation changelogs (#19306)
This commit is contained in:
parent
e58815bb1a
commit
e8dd486132
@ -725,3 +725,8 @@ class RackReservation(PrimaryModel):
|
|||||||
@property
|
@property
|
||||||
def unit_list(self):
|
def unit_list(self):
|
||||||
return array_to_string(self.units)
|
return array_to_string(self.units)
|
||||||
|
|
||||||
|
def to_objectchange(self, action):
|
||||||
|
objectchange = super().to_objectchange(action)
|
||||||
|
objectchange.related_object = self.rack
|
||||||
|
return objectchange
|
||||||
|
Loading…
Reference in New Issue
Block a user