mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fix sorting devicebay table by status
This commit is contained in:
parent
3ad773beb3
commit
53e52aeaa8
@ -653,7 +653,8 @@ class DeviceBayTable(DeviceComponentTable):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
status = tables.TemplateColumn(
|
status = tables.TemplateColumn(
|
||||||
template_code=DEVICEBAY_STATUS
|
template_code=DEVICEBAY_STATUS,
|
||||||
|
order_by=Accessor('installed_device__status')
|
||||||
)
|
)
|
||||||
installed_device = tables.Column(
|
installed_device = tables.Column(
|
||||||
linkify=True
|
linkify=True
|
||||||
|
Loading…
Reference in New Issue
Block a user