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:
Jason Novinger 2025-05-30 12:39:25 -05:00
parent 95d0ca56a7
commit ce90cb7bec

View File

@ -73,7 +73,7 @@ class TunnelTable(TenancyColumnsMixin, NetBoxTable):
default_columns = ('pk', 'name', 'group', 'status', 'encapsulation', 'tenant', 'terminations_count')
class TunnelTerminationTable(TenancyColumnsMixin, NetBoxTable):
class TunnelTerminationTable(NetBoxTable):
tunnel = tables.Column(
verbose_name=_('Tunnel'),
linkify=True