mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
adds object change for contact assignment #13065
This commit is contained in:
parent
ffe4558ec5
commit
8143c6e03b
@ -136,3 +136,8 @@ class ContactAssignment(ChangeLoggedModel):
|
|||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse('tenancy:contact', args=[self.contact.pk])
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user