Skip to content

Commit 71c6cf7

Browse files
Use get method for status display
Co-authored-by: Jeremy Stretch <[email protected]>
1 parent f6d88bb commit 71c6cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/dcim/svg/racks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_device_description(device):
5656
"""
5757
description = f'Name: {device.name}'
5858
description += f'\nRole: {device.role}'
59-
description += f'\nStatus: {device.status.capitalize()}'
59+
description += f'\nStatus: {device.get_status_display()}'
6060
u_height = f'{floatformat(device.device_type.u_height)}U'
6161
description += f'\nDevice Type: {device.device_type.manufacturer.name} {device.device_type.model} ({u_height})'
6262
if device.asset_tag:

0 commit comments

Comments
 (0)