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

9 lines
234 B
Python
Raw Normal View History

2020-09-30 15:07:56 -04:00
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)