adds related object to rack reservation changelogs (#19306)

This commit is contained in:
Jamie (Bear) Murphy 2025-04-25 15:32:18 +01:00 committed by GitHub
parent e58815bb1a
commit e8dd486132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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