Skip to content

Commit

Permalink
Fixes: #47 - Fix sorting bug (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps authored Oct 4, 2024
2 parents 9836b8b + 0acf0e6 commit a585d3c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions netbox_lifecycle/tables/hardware.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.utils.translation import gettext as _
import django_tables2 as tables

from netbox.tables import NetBoxTable
Expand All @@ -12,15 +13,17 @@
class HardwareLifecycleTable(NetBoxTable):
name = tables.Column(
linkify=True,
accessor='name'
accessor='name',
orderable=False,
)

assigned_object = tables.Column(
linkify=True,
verbose_name='Hardware'
verbose_name=_('Hardware'),
orderable=False,
)
assigned_object_count = tables.Column(
verbose_name='Assigned Object Count'
verbose_name=_('Assigned Object Count'),
orderable=False,
)

class Meta(NetBoxTable.Meta):
Expand Down

0 comments on commit a585d3c

Please sign in to comment.