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

Restrict A terminations by parent object

This commit is contained in:
jeremystretch
2022-05-03 09:53:01 -04:00
parent c3742f63fd
commit f0fc8bf2cf
3 changed files with 17 additions and 20 deletions

View File

@ -159,7 +159,7 @@ class LinkTermination(models.Model):
@property
def parent_object(self):
raise NotImplementedError("CableTermination models must implement parent_object()")
raise NotImplementedError(f"{self.__class__.__name__} models must declare a parent_object property")
@property
def link(self):