Skip to content

Commit

Permalink
Fixed logging of created objects (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
abates authored Mar 27, 2024
1 parent a1450ff commit bbd6f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nautobot_design_builder/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,12 +600,12 @@ def save(self):
try:
self.instance.full_clean()
self.instance.save(**self.metadata.save_args)
self.environment.journal.log(self)
self.metadata.created = False
if self._parent is None:
self.environment.log_success(
message=f"{msg} {self.model_class.__name__} {self.instance}", obj=self.instance
)
self.environment.journal.log(self)
# Refresh from DB so that we update based on any
# post save signals that may have fired.
self.instance.refresh_from_db()
Expand Down

0 comments on commit bbd6f9d

Please sign in to comment.