|
|
@@ -75,12 +75,20 @@ class RackTable(BaseTable):
|
|
|
tags = TagColumn(
|
|
|
url_name='dcim:rack_list'
|
|
|
)
|
|
|
+ outer_width = tables.TemplateColumn(
|
|
|
+ template_code="{{ record.outer_width }} {{ record.outer_unit }}",
|
|
|
+ verbose_name='Outer Width'
|
|
|
+ )
|
|
|
+ outer_depth = tables.TemplateColumn(
|
|
|
+ template_code="{{ record.outer_depth }} {{ record.outer_unit }}",
|
|
|
+ verbose_name='Outer Depth'
|
|
|
+ )
|
|
|
|
|
|
class Meta(BaseTable.Meta):
|
|
|
model = Rack
|
|
|
fields = (
|
|
|
'pk', 'id', 'name', 'site', 'location', 'status', 'facility_id', 'tenant', 'role', 'serial', 'asset_tag', 'type',
|
|
|
- 'width', 'u_height', 'comments', 'device_count', 'get_utilization', 'get_power_utilization', 'tags',
|
|
|
+ 'width', 'outer_width', 'outer_depth', 'u_height', 'comments', 'device_count', 'get_utilization', 'get_power_utilization', 'tags',
|
|
|
)
|
|
|
default_columns = (
|
|
|
'pk', 'name', 'site', 'location', 'status', 'facility_id', 'tenant', 'role', 'u_height', 'device_count',
|