Skip to content

Commit

Permalink
Fixes #5417: Fix exception when viewing a device installed within a d…
Browse files Browse the repository at this point in the history
…evice bay
  • Loading branch information
jeremystretch committed Dec 4, 2020
1 parent 1159976 commit f7e61cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/release-notes/version-2.10.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# NetBox v2.10

## v2.10-beta3 (FUTURE)

### Bug Fixes

* [#5417](https://github.com/netbox-community/netbox/issues/5417) - Fix exception when viewing a device installed within a device bay

---

## v2.10-beta2 (2020-12-03)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/device/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<li><a href="{% url 'dcim:device_list' %}">Devices</a></li>
<li><a href="{% url 'dcim:device_list' %}?site={{ object.site.slug }}">{{ object.site }}</a></li>
{% if object.parent_bay %}
<li><a href="{% url 'dcim:device' pk=object.parent_bay.object.pk %}">{{ object.parent_bay.device }}</a></li>
<li><a href="{% url 'dcim:device' pk=object.parent_bay.device.pk %}">{{ object.parent_bay.device }}</a></li>
<li>{{ object.parent_bay }}</li>
{% endif %}
<li>{{ object }}</li>
Expand Down

0 comments on commit f7e61cc

Please sign in to comment.