Initial work on cable paths (WIP)
This commit is contained in:
8
netbox/dcim/managers.py
Normal file
8
netbox/dcim/managers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db.models import Manager
|
||||
|
||||
|
||||
class CablePathManager(Manager):
|
||||
|
||||
def create_for_endpoint(self, endpoint):
|
||||
ct = ContentType.objects.get_for_model(endpoint)
|
Reference in New Issue
Block a user