Skip to content

Commit

Permalink
Disables module_status ordering (#13761)
Browse files Browse the repository at this point in the history
* disables module_status ordering #13756

* Set accessor for module status value

---------

Co-authored-by: Jeremy Stretch <[email protected]>
  • Loading branch information
abhi1693 and jeremystretch authored Sep 18, 2023
1 parent 940c947 commit 3d1f668
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox/dcim/tables/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,9 @@ class ModuleBayTable(DeviceComponentTable):
url_name='dcim:modulebay_list'
)
module_status = columns.TemplateColumn(
verbose_name=_('Module Status'),
template_code=MODULEBAY_STATUS
accessor=tables.A('installed_module__status'),
template_code=MODULEBAY_STATUS,
verbose_name=_('Module Status')
)

class Meta(DeviceComponentTable.Meta):
Expand Down

0 comments on commit 3d1f668

Please sign in to comment.