From 2074c8b391ef87b79d6625de336137be188df90e Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 29 Dec 2022 16:25:39 -0800 Subject: [PATCH] 10201 add back deleted line --- netbox/dcim/models/cables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/dcim/models/cables.py b/netbox/dcim/models/cables.py index 21bdbda0c..48c1f92db 100644 --- a/netbox/dcim/models/cables.py +++ b/netbox/dcim/models/cables.py @@ -313,6 +313,7 @@ class CableTermination(models.Model): ) def delete(self, *args, **kwargs): + # Delete the cable association on the terminating object termination_model = self.termination._meta.model termination_model.objects.filter(pk=self.termination_id).update(