adds related object to rack reservation changelogs

This commit is contained in:
Jamie (Bear) Murphy 2025-04-24 14:19:41 +01:00
parent 88dd7a16f8
commit 9456e95097

View File

@ -725,3 +725,8 @@ class RackReservation(PrimaryModel):
@property
def unit_list(self):
return array_to_string(self.units)
def to_objectchange(self, action):
objectchange = super().to_objectchange(action)
objectchange.related_object = self.rack
return objectchange