|
5 | 5 |
|
6 | 6 | from ipam.models import * |
7 | 7 | from netbox.tables import NetBoxTable, columns |
8 | | -from tenancy.tables import TenancyColumnsMixin, TenantColumn |
| 8 | +from tenancy.tables import ContactsColumnMixin, TenancyColumnsMixin, TenantColumn |
9 | 9 | from .template_code import * |
10 | 10 |
|
11 | 11 | __all__ = ( |
@@ -308,7 +308,7 @@ class Meta(NetBoxTable.Meta): |
308 | 308 | # IPAddresses |
309 | 309 | # |
310 | 310 |
|
311 | | -class IPAddressTable(TenancyColumnsMixin, NetBoxTable): |
| 311 | +class IPAddressTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable): |
312 | 312 | address = tables.TemplateColumn( |
313 | 313 | template_code=IPADDRESS_LINK, |
314 | 314 | verbose_name=_('IP Address') |
@@ -365,7 +365,7 @@ class Meta(NetBoxTable.Meta): |
365 | 365 | model = IPAddress |
366 | 366 | fields = ( |
367 | 367 | 'pk', 'id', 'address', 'vrf', 'status', 'role', 'tenant', 'tenant_group', 'nat_inside', 'nat_outside', |
368 | | - 'assigned', 'dns_name', 'description', 'comments', 'tags', 'created', 'last_updated', |
| 368 | + 'assigned', 'dns_name', 'description', 'comments', 'contacts', 'tags', 'created', 'last_updated', |
369 | 369 | ) |
370 | 370 | default_columns = ( |
371 | 371 | 'pk', 'address', 'vrf', 'status', 'role', 'tenant', 'assigned', 'dns_name', 'description', |
|
0 commit comments