mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
9 lines
234 B
Python
9 lines
234 B
Python
|
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)
|