1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up cable termination changes

This commit is contained in:
jeremystretch
2022-06-03 14:15:28 -04:00
parent 537383e071
commit 0b0a646f87
4 changed files with 17 additions and 29 deletions

View File

@@ -316,7 +316,7 @@ class CableTermination(models.Model):
# Delete the cable association on the terminating object
termination_model = self.termination._meta.model
termination_model.objects.filter(pk=self.termination_id).update(cable=None)
termination_model.objects.filter(pk=self.termination_id).update(cable=None, cable_end='', _path=None)
super().delete(*args, **kwargs)