mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Fixes #19610: FieldError when sorting Tunnel Termination on tenant
It turns out that the TunnelTermination model doesn't implement the tenancy "protocol", in that there are no foreign keys to a tenant or tenant group. It looks like TenancyColumnsMixin was added to TunnelTerminationTable by mistake in completing #9816.
This commit is contained in:
parent
95d0ca56a7
commit
ce90cb7bec
@ -73,7 +73,7 @@ class TunnelTable(TenancyColumnsMixin, NetBoxTable):
|
|||||||
default_columns = ('pk', 'name', 'group', 'status', 'encapsulation', 'tenant', 'terminations_count')
|
default_columns = ('pk', 'name', 'group', 'status', 'encapsulation', 'tenant', 'terminations_count')
|
||||||
|
|
||||||
|
|
||||||
class TunnelTerminationTable(TenancyColumnsMixin, NetBoxTable):
|
class TunnelTerminationTable(NetBoxTable):
|
||||||
tunnel = tables.Column(
|
tunnel = tables.Column(
|
||||||
verbose_name=_('Tunnel'),
|
verbose_name=_('Tunnel'),
|
||||||
linkify=True
|
linkify=True
|
||||||
|
Loading…
Reference in New Issue
Block a user