adds object change for contact assignment #13065

This commit is contained in:
Abhimanyu Saharan 2023-07-06 18:51:51 +05:30
parent 5f0922713f
commit 30e7dbe48f

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