Merge pull request #7804 from kkthxbye-code/fix-7791

Fix #7791 - Allow devicebay table to be sorted by status
This commit is contained in:
Jeremy Stretch 2021-11-11 10:46:15 -05:00 committed by GitHub
commit bd32a6ac8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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