Notifications/subscriptions cannot be ordered by object

This commit is contained in:
Jeremy Stretch 2024-07-12 13:38:14 -04:00
parent aa8a891122
commit 854b7451bb

View File

@ -273,7 +273,8 @@ class SubscriptionTable(NetBoxTable):
) )
object = tables.Column( object = tables.Column(
verbose_name=_('Object'), verbose_name=_('Object'),
linkify=True linkify=True,
orderable=False
) )
actions = columns.ActionsColumn( actions = columns.ActionsColumn(
actions=('delete',) actions=('delete',)
@ -294,7 +295,8 @@ class NotificationTable(NetBoxTable):
linkify={ linkify={
'viewname': 'extras:notification_read', 'viewname': 'extras:notification_read',
'args': [tables.A('pk')], 'args': [tables.A('pk')],
} },
orderable=False
) )
created = columns.DateTimeColumn( created = columns.DateTimeColumn(
timespec='minutes', timespec='minutes',