Skip to content

Commit dbf852a

Browse files
committed
Fixes #50: Branch state should remain 'merged' after dry-run revert
1 parent 4825ca1 commit dbf852a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox_branching/models/branches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def revert(self, user, commit=True):
358358
logger.error(e)
359359
# Disconnect signal receiver & restore original branch status
360360
post_save.disconnect(handler, sender=ObjectChange_)
361-
Branch.objects.filter(pk=self.pk).update(status=BranchStatusChoices.READY)
361+
Branch.objects.filter(pk=self.pk).update(status=BranchStatusChoices.MERGED)
362362
raise e
363363

364364
# Update the Branch's status to "ready"

0 commit comments

Comments
 (0)