mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Clean up imports
This commit is contained in:
parent
c91eb8f406
commit
7ba45b2887
@ -5,42 +5,3 @@ from .devices import *
|
|||||||
from .power import *
|
from .power import *
|
||||||
from .racks import *
|
from .racks import *
|
||||||
from .sites import *
|
from .sites import *
|
||||||
|
|
||||||
__all__ = (
|
|
||||||
'BaseInterface',
|
|
||||||
'Cable',
|
|
||||||
'CablePath',
|
|
||||||
'LinkTermination',
|
|
||||||
'ConsolePort',
|
|
||||||
'ConsolePortTemplate',
|
|
||||||
'ConsoleServerPort',
|
|
||||||
'ConsoleServerPortTemplate',
|
|
||||||
'Device',
|
|
||||||
'DeviceBay',
|
|
||||||
'DeviceBayTemplate',
|
|
||||||
'DeviceRole',
|
|
||||||
'DeviceType',
|
|
||||||
'FrontPort',
|
|
||||||
'FrontPortTemplate',
|
|
||||||
'Interface',
|
|
||||||
'InterfaceTemplate',
|
|
||||||
'InventoryItem',
|
|
||||||
'Location',
|
|
||||||
'Manufacturer',
|
|
||||||
'Platform',
|
|
||||||
'PowerFeed',
|
|
||||||
'PowerOutlet',
|
|
||||||
'PowerOutletTemplate',
|
|
||||||
'PowerPanel',
|
|
||||||
'PowerPort',
|
|
||||||
'PowerPortTemplate',
|
|
||||||
'Rack',
|
|
||||||
'RackReservation',
|
|
||||||
'RackRole',
|
|
||||||
'RearPort',
|
|
||||||
'RearPortTemplate',
|
|
||||||
'Region',
|
|
||||||
'Site',
|
|
||||||
'SiteGroup',
|
|
||||||
'VirtualChassis',
|
|
||||||
)
|
|
||||||
|
@ -27,13 +27,7 @@ from virtualization.models import VirtualMachine
|
|||||||
from . import filtersets, forms, tables
|
from . import filtersets, forms, tables
|
||||||
from .choices import DeviceFaceChoices
|
from .choices import DeviceFaceChoices
|
||||||
from .constants import NONCONNECTABLE_IFACE_TYPES
|
from .constants import NONCONNECTABLE_IFACE_TYPES
|
||||||
from .models import (
|
from .models import *
|
||||||
Cable, CablePath, ConsolePort, ConsolePortTemplate, ConsoleServerPort, ConsoleServerPortTemplate, Device, DeviceBay,
|
|
||||||
DeviceBayTemplate, DeviceRole, DeviceType, FrontPort, FrontPortTemplate, Interface, InterfaceTemplate,
|
|
||||||
InventoryItem, Manufacturer, PathEndpoint, Platform, PowerFeed, PowerOutlet, PowerOutletTemplate, PowerPanel,
|
|
||||||
PowerPort, PowerPortTemplate, Rack, Location, RackReservation, RackRole, RearPort, RearPortTemplate, Region, Site,
|
|
||||||
SiteGroup, VirtualChassis,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class DeviceComponentsView(generic.ObjectChildrenView):
|
class DeviceComponentsView(generic.ObjectChildrenView):
|
||||||
|
@ -5,10 +5,10 @@ from drf_yasg.utils import swagger_serializer_method
|
|||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
|
|
||||||
from dcim.api.nested_serializers import (
|
from dcim.api.nested_serializers import (
|
||||||
NestedDeviceSerializer, NestedDeviceRoleSerializer, NestedDeviceTypeSerializer, NestedPlatformSerializer,
|
NestedDeviceRoleSerializer, NestedDeviceTypeSerializer, NestedPlatformSerializer, NestedRegionSerializer,
|
||||||
NestedRackSerializer, NestedRegionSerializer, NestedSiteSerializer, NestedSiteGroupSerializer,
|
NestedSiteSerializer, NestedSiteGroupSerializer,
|
||||||
)
|
)
|
||||||
from dcim.models import Device, DeviceRole, DeviceType, Platform, Rack, Region, Site, SiteGroup
|
from dcim.models import DeviceRole, DeviceType, Platform, Region, Site, SiteGroup
|
||||||
from extras.choices import *
|
from extras.choices import *
|
||||||
from extras.models import *
|
from extras.models import *
|
||||||
from extras.utils import FeatureQuery
|
from extras.utils import FeatureQuery
|
||||||
|
Loading…
Reference in New Issue
Block a user