Skip to content

Commit 4286c1c

Browse files
committed
Closes #12831: Include circuit description in cable trace SVG image
1 parent 383285f commit 4286c1c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/release-notes/version-3.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Enhancements
66

7+
* [#12831](https://github.com/netbox-community/netbox/issues/12831) - Include circuit description in cable trace SVG image
78
* [#13950](https://github.com/netbox-community/netbox/issues/13950) - Display custom choice field labels rather than values in UI
89

910
### Bug Fixes

netbox/dcim/svg/cables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ def _get_labels(cls, instance):
160160
elif instance._meta.model_name == 'circuit':
161161
labels[0] = f'Circuit {instance}'
162162
labels.append(instance.provider)
163+
if instance.description:
164+
labels.append(instance.description)
163165
elif instance._meta.model_name == 'circuittermination':
164166
if instance.xconnect_id:
165167
labels.append(f'{instance.xconnect_id}')

0 commit comments

Comments
 (0)