Pārlūkot izejas kodu

Closes #9278: Linkify device type in manufacturer table

Hunter Johnston 4 gadi atpakaļ
vecāks
revīzija
bdaefc0e4d
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      netbox/dcim/tables/devicetypes.py

+ 3 - 1
netbox/dcim/tables/devicetypes.py

@@ -31,7 +31,9 @@ class ManufacturerTable(NetBoxTable):
     name = tables.Column(
         linkify=True
     )
-    devicetype_count = tables.Column(
+    devicetype_count = columns.LinkedCountColumn(
+        viewname='dcim:devicetype_list',
+        url_params={'manufacturer_id': 'pk'},
         verbose_name='Device Types'
     )
     inventoryitem_count = tables.Column(