Skip to content

Commit b9e0739

Browse files
committed
Fixes netbox-community#228: Correct conditional inclusion of device bays
1 parent 29358a1 commit b9e0739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/templates/dcim/devicetype.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h1>{{ devicetype }}</h1>
8181
{% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' add_url='dcim:devicetype_add_powerport' delete_url='dcim:devicetype_delete_powerport' %}
8282
</div>
8383
<div class="col-md-6">
84-
{% if devicetype.is_network_device %}
84+
{% if devicetype.is_parent_device %}
8585
{% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' add_url='dcim:devicetype_add_devicebay' delete_url='dcim:devicetype_delete_devicebay' %}
8686
{% endif %}
8787
{% if devicetype.is_network_device %}

0 commit comments

Comments
 (0)