Fix sorting devicebay table by status

This commit is contained in:
kkthxbye-code 2021-11-11 14:05:39 +01:00
parent 1b858c2f2f
commit a00441b6ef

View File

@ -653,7 +653,8 @@ class DeviceBayTable(DeviceComponentTable):
}
)
status = tables.TemplateColumn(
template_code=DEVICEBAY_STATUS
template_code=DEVICEBAY_STATUS,
order_by=Accessor('installed_device__status')
)
installed_device = tables.Column(
linkify=True