1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

adds object change for contact assignment #13065

This commit is contained in:
Abhimanyu Saharan
2023-07-06 18:51:51 +05:30
committed by Jeremy Stretch
parent ffe4558ec5
commit 8143c6e03b

View File

@@ -136,3 +136,8 @@ class ContactAssignment(ChangeLoggedModel):
def get_absolute_url(self):
return reverse('tenancy:contact', args=[self.contact.pk])
def to_objectchange(self, action):
objectchange = super().to_objectchange(action)
objectchange.related_object = self.object
return objectchange