mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 17:59:11 -06:00
Remove unused CablePathManager
This commit is contained in:
parent
23cde6d1b8
commit
3870f5d246
@ -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.choices import *
|
||||||
from dcim.constants import *
|
from dcim.constants import *
|
||||||
from dcim.fields import PathField
|
from dcim.fields import PathField
|
||||||
from dcim.managers import CablePathManager
|
|
||||||
from dcim.utils import path_node_to_object
|
from dcim.utils import path_node_to_object
|
||||||
from extras.models import ChangeLoggedModel, ConfigContextModel, CustomFieldModel, TaggedItem
|
from extras.models import ChangeLoggedModel, ConfigContextModel, CustomFieldModel, TaggedItem
|
||||||
from extras.utils import extras_features
|
from extras.utils import extras_features
|
||||||
@ -1195,8 +1194,6 @@ class CablePath(models.Model):
|
|||||||
default=False
|
default=False
|
||||||
)
|
)
|
||||||
|
|
||||||
objects = CablePathManager()
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
unique_together = ('origin_type', 'origin_id')
|
unique_together = ('origin_type', 'origin_id')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user