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:
committed by
GitHub
parent
ab3531558a
commit
8b7ee0a0db
@ -200,7 +200,8 @@ class NetBoxTable(BaseTable):
|
|||||||
|
|
||||||
class SearchTable(tables.Table):
|
class SearchTable(tables.Table):
|
||||||
object_type = columns.ContentTypeColumn(
|
object_type = columns.ContentTypeColumn(
|
||||||
verbose_name=_('Type')
|
verbose_name=_('Type'),
|
||||||
|
order_by="object___meta__verbose_name",
|
||||||
)
|
)
|
||||||
object = tables.Column(
|
object = tables.Column(
|
||||||
linkify=True
|
linkify=True
|
||||||
|
Reference in New Issue
Block a user