1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

11383 fix search order (#12251)

* Fixes #11383: Sorting search by type doesn't work

* Fixes #11383: Sorting search by type doesn't work; more reliable approach
This commit is contained in:
Austin de Coup-Crank
2023-04-20 16:04:47 -05:00
committed by GitHub
parent ab3531558a
commit 8b7ee0a0db

View File

@ -200,7 +200,8 @@ class NetBoxTable(BaseTable):
class SearchTable(tables.Table):
object_type = columns.ContentTypeColumn(
verbose_name=_('Type')
verbose_name=_('Type'),
order_by="object___meta__verbose_name",
)
object = tables.Column(
linkify=True