Initial work on cable paths (WIP)

This commit is contained in:
Jeremy Stretch
2020-09-30 15:07:56 -04:00
parent 12e2537222
commit 587e6fcf72
9 changed files with 239 additions and 101 deletions

8
netbox/dcim/managers.py Normal file
View 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)