Skip to content

Commit 07ad4c1

Browse files
bctiemannjeremystretch
authored andcommitted
Make GFK scope field sortable=False on tables where it appears
1 parent 4a1fea3 commit 07ad4c1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

netbox/ipam/tables/ip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable):
192192
)
193193
scope = tables.Column(
194194
verbose_name=_('Scope'),
195-
linkify=True
195+
linkify=True,
196+
orderable=False
196197
)
197198
vlan_group = tables.Column(
198199
accessor='vlan__group',

netbox/virtualization/tables/clusters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class ClusterTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
7878
)
7979
scope = tables.Column(
8080
verbose_name=_('Scope'),
81-
linkify=True
81+
linkify=True,
82+
orderable=False
8283
)
8384
device_count = columns.LinkedCountColumn(
8485
viewname='dcim:device_list',

netbox/wireless/tables/wirelesslan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class WirelessLANTable(TenancyColumnsMixin, NetBoxTable):
5656
)
5757
scope = tables.Column(
5858
verbose_name=_('Scope'),
59-
linkify=True
59+
linkify=True,
60+
orderable=False
6061
)
6162
interface_count = tables.Column(
6263
verbose_name=_('Interfaces')

0 commit comments

Comments
 (0)