소스 검색

Fixes #461: Display a validation error when attempting to assigning a new child device to a rack face/position

Jeremy Stretch 8 년 전
부모
커밋
52a490bf5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/templates/dcim/device_edit.html

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

@@ -45,7 +45,7 @@
                         </p>
                     </div>
                 </div>
-            {% elif not obj.device_type.is_child_device %}
+            {% else %}
                 {% render_field form.face %}
                 {% render_field form.position %}
             {% endif %}