From c9df63f4884185d83f2ae6038060d195b72371b5 Mon Sep 17 00:00:00 2001 From: Renato Almeida de Oliveira Date: Tue, 20 Dec 2022 00:10:32 +0000 Subject: [PATCH 1/2] Add ExportTemplatesMixin to JournalEntry model --- netbox/extras/models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/extras/models/models.py b/netbox/extras/models/models.py index 6a60458e2d8..78fabd9ee44 100644 --- a/netbox/extras/models/models.py +++ b/netbox/extras/models/models.py @@ -514,7 +514,7 @@ def to_objectchange(self, action): return objectchange -class JournalEntry(CustomFieldsMixin, CustomLinksMixin, TagsMixin, WebhooksMixin, ChangeLoggedModel): +class JournalEntry(CustomFieldsMixin, CustomLinksMixin, TagsMixin, WebhooksMixin, ChangeLoggedModel, ExportTemplatesMixin): """ A historical remark concerning an object; collectively, these form an object's journal. The journal is used to preserve historical context around an object, and complements NetBox's built-in change logging. For example, you From e527011b790ba5e6dc2bd8cd46a5eba534dff88d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 5 Jan 2023 16:11:18 -0500 Subject: [PATCH 2/2] Move mixin ahead of base class --- netbox/extras/models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/extras/models/models.py b/netbox/extras/models/models.py index 78fabd9ee44..23fb6ac2f97 100644 --- a/netbox/extras/models/models.py +++ b/netbox/extras/models/models.py @@ -514,7 +514,7 @@ def to_objectchange(self, action): return objectchange -class JournalEntry(CustomFieldsMixin, CustomLinksMixin, TagsMixin, WebhooksMixin, ChangeLoggedModel, ExportTemplatesMixin): +class JournalEntry(CustomFieldsMixin, CustomLinksMixin, TagsMixin, WebhooksMixin, ExportTemplatesMixin, ChangeLoggedModel): """ A historical remark concerning an object; collectively, these form an object's journal. The journal is used to preserve historical context around an object, and complements NetBox's built-in change logging. For example, you