mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 19:47:20 -06:00
Closes #10035: Include assigned_object_parent column by default in L2VPN terminations table
This commit is contained in:
parent
5671a37f43
commit
107f19a0e9
@ -49,21 +49,27 @@ class L2VPNTerminationTable(NetBoxTable):
|
|||||||
verbose_name='Object Type'
|
verbose_name='Object Type'
|
||||||
)
|
)
|
||||||
assigned_object = tables.Column(
|
assigned_object = tables.Column(
|
||||||
verbose_name='Assigned Object',
|
|
||||||
linkify=True,
|
linkify=True,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
verbose_name='Object'
|
||||||
)
|
)
|
||||||
assigned_object_parent = tables.Column(
|
assigned_object_parent = tables.Column(
|
||||||
linkify=True,
|
linkify=True,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
verbose_name='Object Parent'
|
||||||
)
|
)
|
||||||
assigned_object_site = tables.Column(
|
assigned_object_site = tables.Column(
|
||||||
linkify=True,
|
linkify=True,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
verbose_name='Object Site'
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta(NetBoxTable.Meta):
|
class Meta(NetBoxTable.Meta):
|
||||||
model = L2VPNTermination
|
model = L2VPNTermination
|
||||||
fields = ('pk', 'l2vpn', 'assigned_object_type', 'assigned_object', 'assigned_object_parent',
|
fields = (
|
||||||
'assigned_object_site', 'actions')
|
'pk', 'l2vpn', 'assigned_object_type', 'assigned_object', 'assigned_object_parent', 'assigned_object_site',
|
||||||
default_columns = ('pk', 'l2vpn', 'assigned_object_type', 'assigned_object', 'actions')
|
'actions',
|
||||||
|
)
|
||||||
|
default_columns = (
|
||||||
|
'pk', 'l2vpn', 'assigned_object_type', 'assigned_object_parent', 'assigned_object', 'actions',
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user