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

Closes #13350: Remove unused DeviceImportTable class

This commit is contained in:
Jeremy Stretch
2023-08-02 11:18:06 -04:00
parent 04c5e62d2b
commit a698a93938

View File

@ -1,7 +1,6 @@
from django.utils.translation import gettext_lazy as _
import django_tables2 as tables
from django.utils.translation import gettext_lazy as _
from django_tables2.utils import Accessor
from django.utils.translation import gettext as _
from dcim import models
from netbox.tables import NetBoxTable, columns
@ -18,7 +17,6 @@ __all__ = (
'DeviceConsoleServerPortTable',
'DeviceDeviceBayTable',
'DeviceFrontPortTable',
'DeviceImportTable',
'DeviceInterfaceTable',
'DeviceInventoryItemTable',
'DeviceModuleBayTable',
@ -297,36 +295,6 @@ class DeviceTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
)
class DeviceImportTable(TenancyColumnsMixin, NetBoxTable):
name = tables.TemplateColumn(
verbose_name=_('Name'),
template_code=DEVICE_LINK,
linkify=True
)
status = columns.ChoiceFieldColumn(
verbose_name=_('Status'),
)
site = tables.Column(
verbose_name=_('Site'),
linkify=True
)
rack = tables.Column(
verbose_name=_('Rack'),
linkify=True
)
role = tables.Column(
verbose_name=_('Role')
)
device_type = tables.Column(
verbose_name=_('Type')
)
class Meta(NetBoxTable.Meta):
model = models.Device
fields = ('id', 'name', 'status', 'tenant', 'tenant_group', 'site', 'rack', 'position', 'role', 'device_type')
empty_text = False
#
# Device components
#