mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-27 11:17:27 +02:00
fix(tables): Correct sortable column definitions across tables
Fix broken sorting metadata caused by incorrect accessors, field references, and naming mismatches in several table definitions. Update accessor paths for provider_account and device order_by; add order_by mapping for the is_active property column; correct field name typos such as termination_count to terminations_count; rename the ssl_validation column to ssl_verification to match the model field; and mark computed columns as orderable=False where sorting is not supported. Fixes #21825
This commit is contained in:
committed by
Jeremy Stretch
parent
f2d8ae29c2
commit
57556e3fdb
@@ -95,6 +95,7 @@ class VirtualCircuitTerminationTable(NetBoxTable):
|
||||
verbose_name=_('Provider network')
|
||||
)
|
||||
provider_account = tables.Column(
|
||||
accessor=tables.A('virtual_circuit__provider_account'),
|
||||
linkify=True,
|
||||
verbose_name=_('Account')
|
||||
)
|
||||
@@ -112,7 +113,7 @@ class VirtualCircuitTerminationTable(NetBoxTable):
|
||||
class Meta(NetBoxTable.Meta):
|
||||
model = VirtualCircuitTermination
|
||||
fields = (
|
||||
'pk', 'id', 'virtual_circuit', 'provider', 'provider_network', 'provider_account', 'role', 'interfaces',
|
||||
'pk', 'id', 'virtual_circuit', 'provider', 'provider_network', 'provider_account', 'role', 'interface',
|
||||
'description', 'created', 'last_updated', 'actions',
|
||||
)
|
||||
default_columns = (
|
||||
|
||||
Reference in New Issue
Block a user