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