Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions netbox_branching/models/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ def _update_conflicts(self):
"""
Record any conflicting changes between the modified and current object data.
"""
if self.original is None or self.current is None:
# Both the original and current states must be available to compare
return
conflicts = None
if self.action == ObjectChangeActionChoices.ACTION_UPDATE:
conflicts = [
Expand Down