mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Remove unused CablePathManager
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
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)
|
@@ -15,7 +15,6 @@ from taggit.managers import TaggableManager
|
||||
from dcim.choices import *
|
||||
from dcim.constants import *
|
||||
from dcim.fields import PathField
|
||||
from dcim.managers import CablePathManager
|
||||
from dcim.utils import path_node_to_object
|
||||
from extras.models import ChangeLoggedModel, ConfigContextModel, CustomFieldModel, TaggedItem
|
||||
from extras.utils import extras_features
|
||||
@@ -1195,8 +1194,6 @@ class CablePath(models.Model):
|
||||
default=False
|
||||
)
|
||||
|
||||
objects = CablePathManager()
|
||||
|
||||
class Meta:
|
||||
unique_together = ('origin_type', 'origin_id')
|
||||
|
||||
|
Reference in New Issue
Block a user