mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-21 21:02:23 -06:00
Closes #13150: Wrap table column headers with gettext()
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
import django_tables2 as tables
|
||||
|
||||
from netbox.tables import NetBoxTable, columns
|
||||
@@ -12,21 +13,27 @@ __all__ = (
|
||||
class WirelessLinkTable(TenancyColumnsMixin, NetBoxTable):
|
||||
id = tables.Column(
|
||||
linkify=True,
|
||||
verbose_name='ID'
|
||||
verbose_name=_('ID')
|
||||
)
|
||||
status = columns.ChoiceFieldColumn(
|
||||
verbose_name=_('Status'),
|
||||
)
|
||||
status = columns.ChoiceFieldColumn()
|
||||
device_a = tables.Column(
|
||||
verbose_name=_('Device A'),
|
||||
accessor=tables.A('interface_a__device'),
|
||||
linkify=True
|
||||
)
|
||||
interface_a = tables.Column(
|
||||
verbose_name=_('Interface A'),
|
||||
linkify=True
|
||||
)
|
||||
device_b = tables.Column(
|
||||
verbose_name=_('Device B'),
|
||||
accessor=tables.A('interface_b__device'),
|
||||
linkify=True
|
||||
)
|
||||
interface_b = tables.Column(
|
||||
verbose_name=_('Interface B'),
|
||||
linkify=True
|
||||
)
|
||||
tags = columns.TagColumn(
|
||||
|
||||
Reference in New Issue
Block a user