We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9cd02 commit 5883b44Copy full SHA for 5883b44
netbox_floorplan/tables.py
@@ -6,6 +6,7 @@
6
7
from dcim.models import Rack, Device
8
9
+
10
class FloorplanImageTable(NetBoxTable):
11
name = tables.Column(
12
linkify=True,
@@ -53,6 +54,7 @@ class Meta(NetBoxTable.Meta):
53
54
'id': lambda record: 'object_rack_{}'.format(record.pk),
55
}
56
57
58
class FloorplanDeviceTable(NetBoxTable):
59
name = tables.LinkColumn()
60
embedded = True
@@ -67,9 +69,8 @@ def htmx_url(self):
67
69
# no need to check for embedded as this table is always embedded
68
70
return "/plugins/floorplan/floorplans/devices/"
71
-
72
class Meta(NetBoxTable.Meta):
- model = Device
73
+ model = Device
74
fields = ('pk', 'name', 'device_type')
75
default_columns = ('pk', 'name', 'device_type')
76
row_attrs = {
0 commit comments