mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Refactor to_objectchange()
This commit is contained in:
@@ -418,7 +418,9 @@ class ImageAttachment(WebhooksMixin, ChangeLoggedModel):
|
||||
return None
|
||||
|
||||
def to_objectchange(self, action):
|
||||
return super().to_objectchange(action, related_object=self.parent)
|
||||
objectchange = super().to_objectchange(action)
|
||||
objectchange.related_object = self.parent
|
||||
return objectchange
|
||||
|
||||
|
||||
class JournalEntry(WebhooksMixin, ChangeLoggedModel):
|
||||
|
Reference in New Issue
Block a user