소스 검색

Fixes #6714: Fix rendering of device type component creation forms

jeremystretch 4 년 전
부모
커밋
54dfa6cb7f
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 1 1
      netbox/templates/dcim/device_component_add.html

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -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
 
 ---
 

+ 1 - 1
netbox/templates/dcim/device_component_add.html

@@ -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 %}