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

Fixes #4438: Fix exception when disconnecting a cable from a power feed

This commit is contained in:
Jeremy Stretch
2020-04-02 10:19:50 -04:00
parent 354f87c888
commit 4ab3854d66
2 changed files with 5 additions and 0 deletions

View File

@@ -1905,6 +1905,10 @@ class PowerFeed(ChangeLoggedModel, CableTermination, CustomFieldModel):
super().save(*args, **kwargs)
@property
def parent(self):
return self.power_panel
def get_type_class(self):
return self.TYPE_CLASS_MAP.get(self.type)