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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user