Skip to content

Commit

Permalink
Fixes #6714: Fix rendering of device type component creation forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 7, 2021
1 parent 7c667f3 commit 54dfa6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/release-notes/version-2.11.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bug Fixes

* [#6710](https://github.com/netbox-community/netbox/issues/6710) - Fix assignment of VM interface parent via REST API
* [#6714](https://github.com/netbox-community/netbox/issues/6714) - Fix rendering of device type component creation forms

---

Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/device_component_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{ field }}
{% endfor %}
{% for field in form.visible_fields %}
{% if field.name not in form.custom_fields %}
{% if not form.custom_fields or field.name not in form.custom_fields %}
{% render_field field %}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 54dfa6c

Please sign in to comment.