mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-21 11:08:44 -06:00
Remove link peer fields from cable termination models
This commit is contained in:
@@ -307,7 +307,10 @@ class CableTermination(models.Model):
|
||||
|
||||
# Set the cable on the terminating object
|
||||
termination_model = self.termination._meta.model
|
||||
termination_model.objects.filter(pk=self.termination_id).update(cable=self.cable)
|
||||
termination_model.objects.filter(pk=self.termination_id).update(
|
||||
cable=self.cable,
|
||||
cable_end=self.cable_end
|
||||
)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user