Merge pull request #9288 from huntabyte/develop

Closes #9278: Linkify device type in manufacturer table
This commit is contained in:
Jeremy Stretch 2022-05-04 13:43:16 -04:00 committed by GitHub
commit 502a14e820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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