Skip to content

Commit aac106c

Browse files
committed
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.
1 parent 0c6726d commit aac106c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/vpn/tables/tunnels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Meta(NetBoxTable.Meta):
7373
default_columns = ('pk', 'name', 'group', 'status', 'encapsulation', 'tenant', 'terminations_count')
7474

7575

76-
class TunnelTerminationTable(TenancyColumnsMixin, NetBoxTable):
76+
class TunnelTerminationTable(NetBoxTable):
7777
tunnel = tables.Column(
7878
verbose_name=_('Tunnel'),
7979
linkify=True

0 commit comments

Comments
 (0)